Skip to content

Commit

Permalink
Merge pull request #719 from onekey-sec/fix-docker-build
Browse files Browse the repository at this point in the history
fix(ci): tag Docker image as latest if built from default branch.
  • Loading branch information
qkaiser authored Jan 29, 2024
2 parents f3be256 + 3f4e5dd commit d8eeaf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Docker container vulnerability scan
Expand Down

0 comments on commit d8eeaf2

Please sign in to comment.