From 00d71fd3d6f2b252e2c1c9ea24a16a01b55390f7 Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Wed, 18 Mar 2026 02:16:18 +0000 Subject: [PATCH] feat(ci): publish image on commit --- .tangled/workflows/publish-image.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .tangled/workflows/publish-image.yml diff --git a/.tangled/workflows/publish-image.yml b/.tangled/workflows/publish-image.yml new file mode 100644 index 0000000..3760232 --- /dev/null +++ b/.tangled/workflows/publish-image.yml @@ -0,0 +1,23 @@ +when: + - event: ["push"] + branches: main + +engine: nixery + +dependencies: + nixpkgs: + - podman + +steps: + - name: Create podman config + command: | + mkdir -p ~/.config/containers + echo "unqualified-search-registries = [\"docker.io\"]" >> ~/.config/containers/registries.conf + + - name: Build image + command: | + podman build . -t tranquil-pds:latest -t "tranquil-pds:$TANGLED_COMMIT_SHA" + + - name: Publish image + command: | + podman push --creds "$ATCR_USERNAME:$ATCR_PASSWORD" tranquil-pds:latest atcr.io/tranquild-pds/tranquil