From b193be3c4ad0742af16181ccfcdd8efee9d730c6 Mon Sep 17 00:00:00 2001 From: Mathew Alex Date: Sun, 29 May 2022 11:47:51 +0530 Subject: [PATCH] update image name with context --- .github/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e590e579f0f..14fa6da9c9a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -68,8 +68,8 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME - ${{ secrets.DOCKER_HUB_USERNAME }}/$IMAGE_NAME + ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} + ${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }} tags: | type=raw,value=latest-${{ github.run_number }}-{{date 'YYYYMMDD'}}-{{sha}} type=semver,pattern={{version}} @@ -129,8 +129,8 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME - ${{ secrets.DOCKER_HUB_USERNAME }}/$IMAGE_NAME + ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} + ${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }} tags: | type=raw,value=production-latest,enable=${{ github.ref == 'refs/heads/production' }} type=raw,value=production-latest-${{ github.run_number }}-{{date 'YYYYMMDD'}}-{{sha}}