Skip to content

Commit

Permalink
test github job id in base tag
Browse files Browse the repository at this point in the history
  • Loading branch information
smburbach committed Aug 9, 2024
1 parent b6c8fb2 commit 1e23ddb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e23ddb

Please sign in to comment.