diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21e2f3f..40092e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,8 @@ jobs: --build-arg "DATE_ARG=${{ github.event.repository.updated_at }}" \ --label "build=${GITHUB_RUN_ID}" \ --label "version=${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \ - --tag "${{ github.repository }}:latest" \ - --tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \ + --tag "${{ secrets.DOCKERHUB_REPO }}:latest" \ + --tag "${{ secrets.DOCKERHUB_REPO }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \ --tag "ghcr.io/${{ github.repository }}:latest" \ --tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" - @@ -61,8 +61,8 @@ jobs: - name: Push to DockerHub run: | - docker push "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" &&\ - docker push "${{ github.repository }}:latest" + docker push "${{ secrets.DOCKERHUB_REPO }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" &&\ + docker push "${{ secrets.DOCKERHUB_REPO }}:latest" - name: Login to GitHub Container Registry uses: docker/login-action@v2 diff --git a/.github/workflows/hub.yml b/.github/workflows/hub.yml index 216d6a1..1b42da8 100644 --- a/.github/workflows/hub.yml +++ b/.github/workflows/hub.yml @@ -18,6 +18,6 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - repository: ${{ github.repository }} + repository: ${{ secrets.DOCKERHUB_REPO }} short-description: ${{ github.event.repository.description }} readme-filepath: ./readme.md