File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 with :
2323 persist-credentials : false
2424
25- - run : " echo ${{ github.ref }}"
26- - run : " echo ${{ (github.ref == 'refs/heads/main') && 'image-registry' || '' }}"
27-
2825 - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2926 with :
3027 node-version : 26
@@ -51,14 +48,27 @@ jobs:
5148 - name : typecheck
5249 run : node --run typecheck
5350
54- docker :
51+ docker-build :
52+ if : github.ref != 'refs/heads/main'
53+ needs : [ci]
54+ runs-on : depot-ubuntu-24.04
55+ permissions :
56+ contents : read
57+
58+ steps :
59+ - name : Build and maybe Push Docker image
60+ uses : depot/build-push-action@98e78adca7817480b8185f474a400b451d74e287 # v1.18.0
61+ with :
62+ project : ks849krng9
63+ platforms : linux/arm64
64+
65+ docker-push :
66+ if : github.ref == 'refs/heads/main'
5567 needs : [ci]
5668 runs-on : depot-ubuntu-24.04
57- environment : ${{ (github.ref == 'refs/heads/main') && ' image-registry' || '' }}
69+ environment : image-registry
5870 permissions :
5971 contents : read
60- packages : write
61- id-token : write
6272
6373 steps :
6474 - name : Docker meta
7282 type=raw,value=latest
7383
7484 - name : Login to GHCR
75- if : github.ref == 'refs/heads/main'
7685 uses : docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
7786 with :
7887 registry : ghcr.io
You can’t perform that action at this time.
0 commit comments