From 2e7af5d9c015a456df2e1602147c4fd1c38f10e8 Mon Sep 17 00:00:00 2001 From: Abner Rizzi Date: Thu, 10 Aug 2023 15:44:09 -0300 Subject: [PATCH] testing --- .github/workflows/build-push-ghcr.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-push-ghcr.yml b/.github/workflows/build-push-ghcr.yml index f14f045..6b907fa 100644 --- a/.github/workflows/build-push-ghcr.yml +++ b/.github/workflows/build-push-ghcr.yml @@ -20,8 +20,7 @@ jobs: - name: Setting parameters run: |- REPO_NAME=${{ github.repository }} - echo ${REPO_NAME} - echo ${REPO_NAME,,} + echo "REPO_NAME={REPO_NAME,,}" >> $GITHUB_ENV - name: Build and push Docker image id: docker_build @@ -30,13 +29,13 @@ jobs: context: . file: Dockerfile.base push: true - tags: ghcr.io/${{ github.repository }}:${{ github.sha }} + tags: ghcr.io/${{ REPO_NAME }}:${{ github.sha }} - name: Docker image metadata id: image_meta uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository }} + images: ghcr.io/${{ REPO_NAME }} flavor: latest=true tags: | type=sha @@ -49,7 +48,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Push metadata to image - run: docker push ghcr.io/${{ github.repository }} + run: docker push ghcr.io/${{ REPO_NAME }} - name: Push tags to image run: docker push ${{ steps.image_meta.outputs.tags }}