Skip to content

Commit 6728e8c

Browse files
committed
publish to tag dev on branch dev
1 parent de65ab1 commit 6728e8c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/image.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,19 @@ jobs:
2121
username: ${{ github.actor }}
2222
password: ${{ secrets.GITHUB_TOKEN }}
2323

24+
- name: Build and push Docker image dev
25+
if: github.ref_name == 'dev'
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: .
29+
file: ./Dockerfile
30+
push: true
31+
build-args: |
32+
"VERSION=${{ github.sha }}-dev"
33+
tags: ghcr.io/linalinn/kicad-render:dev
34+
2435
- name: Build and push Docker image
36+
if: github.ref_name == github.event.repository.default_branch
2537
uses: docker/build-push-action@v5
2638
with:
2739
context: .

0 commit comments

Comments
 (0)