From 1e23ddbc45b1ec40d32a2c0cdc1e840f09c384a3 Mon Sep 17 00:00:00 2001 From: Sarah Burbach Date: Fri, 9 Aug 2024 14:16:50 -0700 Subject: [PATCH] test github job id in base tag --- .github/workflows/docker-publish.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 908a260..0a6b038 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -36,18 +36,16 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: echo job id - run: echo ${{ github.job }} - name: build and push uses: docker/build-push-action@v6 with: context: ./base - cache-to: type=registry,ref=brineylab/base:cache,mode=max - cache-from: type=registry,ref=brineylab/base:cache + cache-to: type=registry,ref=brineylab/${{ github.job }}:cache,mode=max + cache-from: type=registry,ref=brineylab/${{ github.job }}:cache push: ${{ github.event_name == 'release' }} tags: | - brineylab/base:latest - brineylab/base:${{ github.event.release.tag_name || 'no_push' }} + brineylab/${{ github.job }}:latest + brineylab/${{ github.job }}:${{ github.event.release.tag_name || 'no_push' }} # ------------------ # CODESERVER