Skip to content

Commit

Permalink
update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
totegamma committed Jul 19, 2024
1 parent 05482a7 commit 49010a4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,19 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get tag
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}

- name: Get tag
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
tags: |
type=raw,value=latest,enable=${{ !contains(env.TAG, 'beta') }}
type=semver,pattern={{raw}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 49010a4

Please sign in to comment.