Skip to content

Commit 5d33255

Browse files
authored
enhance build (#71)
1 parent 9adcafa commit 5d33255

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,14 @@ jobs:
4848
with:
4949
images: ghcr.io/${{ github.repository_owner }}/ursa
5050
tags: |
51+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
52+
type=semver,pattern={{version}}
53+
54+
- name: Build and push
55+
uses: docker/build-push-action@v6
56+
with:
57+
context: .
58+
file: Dockerfile
59+
push: true
60+
platforms: linux/amd64,linux/arm64
61+
tags: ${{ env.DOCKER_METADATA_OUTPUT_TAGS }}

0 commit comments

Comments
 (0)