From 45e9e147109b9b14ce644e2cab4326850ae9ec59 Mon Sep 17 00:00:00 2001 From: Sergey Nikitin Date: Fri, 29 Mar 2024 20:02:37 +0100 Subject: [PATCH] fix(): Remove hardcoded name in GH actions --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8d65d799..49c54b89 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -45,7 +45,7 @@ jobs: context: . push: true tags: | - ghcr.io/${{ secrets.DOCKER_USERNAME }}/voice-to-text-bot/${{ env.CONTAINER_NAME }}:${{ inputs.sha }} + ghcr.io/${{ env.GITHUB_REPOSITORY }}/${{ env.CONTAINER_NAME }}:${{ inputs.sha }} build-args: APP_VERSION=${{ inputs.version }} - name: Publish to Registry and extra tag @@ -55,8 +55,8 @@ jobs: context: . push: true tags: | - ghcr.io/${{ secrets.DOCKER_USERNAME }}/voice-to-text-bot/${{ env.CONTAINER_NAME }}:${{ inputs.docker-tag }} - ghcr.io/${{ secrets.DOCKER_USERNAME }}/voice-to-text-bot/${{ env.CONTAINER_NAME }}:${{ inputs.sha }} + ghcr.io/${{ env.GITHUB_REPOSITORY }}/${{ env.CONTAINER_NAME }}:${{ inputs.docker-tag }} + ghcr.io/${{ env.GITHUB_REPOSITORY }}/${{ env.CONTAINER_NAME }}:${{ inputs.sha }} build-args: APP_VERSION=${{ inputs.version }} - name: Add image reference