Publish container image to atcr.io on every push to main. Need to set the ATCR_USERNAME and ATCR_PASSWORD in repo secret.
+23
Diff
round #0
+23
.tangled/workflows/publish-image.yml
+23
.tangled/workflows/publish-image.yml
···
1
+
when:
2
+
- event: ["push"]
3
+
branches: main
4
+
5
+
engine: nixery
6
+
7
+
dependencies:
8
+
nixpkgs:
9
+
- podman
10
+
11
+
steps:
12
+
- name: Create podman config
13
+
command: |
14
+
mkdir -p ~/.config/containers
15
+
echo "unqualified-search-registries = [\"docker.io\"]" >> ~/.config/containers/registries.conf
16
+
17
+
- name: Build image
18
+
command: |
19
+
podman build . -t tranquil-pds:latest -t "tranquil-pds:$TANGLED_COMMIT_SHA"
20
+
21
+
- name: Publish image
22
+
command: |
23
+
podman push --creds "$ATCR_USERNAME:$ATCR_PASSWORD" tranquil-pds:latest atcr.io/tranquild-pds/tranquil
History
1 round
3 comments
tachyonism.tngl.sh
submitted
#0
1 commit
expand
collapse
feat(ci): publish image on commit
expand 3 comments
we can just ... add a spindle ... imma do that rq and merge
Spindle still not up yet? :P
pull request successfully merged
Looks suitable to merge once this repo actually has access to a spindle, thank you!