diff --git a/.tangled/workflows/release-credential-helper.yml b/.tangled/workflows/release-credential-helper.yml index 80df78c..14d1ca6 100644 --- a/.tangled/workflows/release-credential-helper.yml +++ b/.tangled/workflows/release-credential-helper.yml @@ -7,7 +7,7 @@ # Triggers on version tags (v*) pushed to the repository. when: - - event: ["push"] + - event: ["manual"] tag: ["v*"] engine: "nixery" diff --git a/.tangled/workflows/release.yml b/.tangled/workflows/release.yml index c900255..017ca2d 100644 --- a/.tangled/workflows/release.yml +++ b/.tangled/workflows/release.yml @@ -2,15 +2,10 @@ # Triggers on version tags and builds cross-platform binaries using buildah when: - - event: ["manual"] + - event: ["push"] tag: ["v*"] -engine: "nixery" - -dependencies: - nixpkgs: - - buildah - - gnugrep # Required for tag detection +engine: "buildah" environment: IMAGE_REGISTRY: atcr.io @@ -37,19 +32,19 @@ steps: echo "Building version: $TAG" echo "$TAG" > .version - - name: Setup build environment + - name: Setup registry credentials command: | - if ! grep -q "^root:" /etc/passwd 2>/dev/null; then - echo "root:x:0:0:root:/root:/bin/sh" >> /etc/passwd - fi - - - name: Login to registry - command: | - echo "${APP_PASSWORD}" | buildah login \ - --storage-driver vfs \ - -u "${IMAGE_USER}" \ - --password-stdin \ - ${IMAGE_REGISTRY} + mkdir -p ~/.docker + cat > ~/.docker/config.json <