From 477317e05cd0417783c5113c5d29773dbbc22f6b Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Sat, 29 Jun 2024 11:30:42 +0700 Subject: [PATCH] feat: add latest tag --- .github/workflows/build-deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index a1d012b..ac5db1e 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -11,6 +11,7 @@ on: env: IMAGE_NAME: ghcr.io/${{ github.repository }} + IMAGE_TAG: ${{ github.sha }} jobs: build: @@ -36,7 +37,8 @@ jobs: uses: docker/build-push-action@v3 with: push: true - tags: ${{ env.IMAGE_NAME }}:${{ github.ref_type == 'tag' && github.ref_name || github.sha }} + tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }},${{ env.IMAGE_NAME }}:latest cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max -# docker pull --platform linux/x86_64 + +# docker pull --platform linux/x86_64 \ No newline at end of file