Skip to content

Commit

Permalink
Merge pull request #737 from onekey-sec/fix-docker-build
Browse files Browse the repository at this point in the history
fix docker image tagging
  • Loading branch information
qkaiser authored Jan 29, 2024
2 parents ed4c3f7 + ab18f8c commit 2853355
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_IMAGE }}

tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -56,8 +59,7 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
tags: ${{ steps.meta.output.tags }}
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 2853355

Please sign in to comment.