Skip to content

Commit 02c5502

Browse files
rrooijMatthijs van Otterdijk
andauthored
ci: publish dev image as well (#17)
The dev image will be amd64 architecture only because it takes a really long time to build in QEMU otherwise (around 40 minutes). But it is nice to be able to have a dev image available that we can use to test without publicizing a new version. Co-authored-by: Matthijs van Otterdijk <[email protected]>
1 parent 832feb0 commit 02c5502

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
build-and-push-image:
3535
runs-on: ubuntu-latest
3636
needs: [clippy_and_format, build_and_test]
37-
if: startsWith(github.ref, 'refs/tags/v')
37+
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
3838
permissions:
3939
contents: read
4040
packages: write
@@ -64,10 +64,21 @@ jobs:
6464
images: ${{ env.IMAGE_NAME }}
6565

6666
- name: Build and push Docker image
67+
if: startsWith(github.ref, 'refs/tags/v')
6768
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
6869
with:
6970
context: .
7071
platforms: linux/amd64,linux/arm64
7172
push: true
7273
tags: ${{ steps.meta.outputs.tags }}
7374
labels: ${{ steps.meta.outputs.labels }}
75+
76+
- name: Build and push Docker image
77+
if: github.ref == 'refs/heads/main'
78+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
79+
with:
80+
context: .
81+
platforms: linux/amd64
82+
push: true
83+
tags: ${{ steps.meta.outputs.tags }}
84+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)