social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky

Reapply "try atcr.io.. 2"

This reverts commit edb5d20bc91b8b657e263542245a5e2c119e8bb0.

zenfyr.dev d26727b2 edb5d20b

verified
+25 -10
+25 -10
.tangled/workflows/build-images.yml
··· 9 9 - kaniko 10 10 - regctl 11 11 12 - environment: 13 - GHCR_USER: "zenfyrdev" 14 - 15 12 steps: 16 13 - name: create auth configs 17 14 command: | 18 15 mkdir -p $HOME/.docker $HOME/.regctl 19 16 20 17 cat > $HOME/.docker/config.json <<EOF 21 - {"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}} 18 + {"auths": {"ghcr.io": {"auth": "$(echo -n "zenfyrdev:$GHCR_PAT" | base64 -w0)"}, "atcr.io": {"auth": "$(echo -n "zenfyr.dev:$APP_PASSWORD" | base64 -w0)"}}} 22 19 EOF 23 20 24 21 cat > $HOME/.regctl/config.json <<EOF 25 - {"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}} 22 + {"hosts": {"ghcr.io": {"user": "zenfyrdev","pass": "$GHCR_PAT"}, "atcr.io": {"user": "zenfyr.dev","pass": "$APP_PASSWORD"}}} 26 23 EOF 27 24 28 25 - name: build amd64 ··· 31 28 --context=dir://. \ 32 29 --dockerfile=Containerfile \ 33 30 --verbosity=info \ 34 - --destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \ 31 + --destination=ghcr.io/zenfyrdev/xpost:amd64-latest \ 35 32 --custom-platform=linux/amd64 36 33 37 34 - name: build arm64 ··· 40 37 --context=dir://. \ 41 38 --dockerfile=Containerfile \ 42 39 --verbosity=info \ 43 - --destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \ 40 + --destination=ghcr.io/zenfyrdev/xpost:arm64-latest \ 44 41 --custom-platform=linux/arm64 45 42 46 43 - name: tag latest artifact 47 44 command: | 48 - regctl index create ghcr.io/$GHCR_USER/xpost:latest \ 49 - --ref ghcr.io/$GHCR_USER/xpost:amd64-latest --platform linux/amd64 \ 50 - --ref ghcr.io/$GHCR_USER/xpost:arm64-latest --platform linux/arm64 45 + regctl index create ghcr.io/zenfyrdev/xpost:latest \ 46 + --ref ghcr.io/zenfyrdev/xpost:amd64-latest --platform linux/amd64 \ 47 + --ref ghcr.io/zenfyrdev/xpost:arm64-latest --platform linux/arm64 48 + 49 + - name: push to atcr.io 50 + command: | 51 + regctl image mod \ 52 + ghcr.io/zenfyrdev/xpost:arm64-latest \ 53 + --to-docker \ 54 + --create atcr.io/zenfyr.dev/xpost:arm64-latest 55 + 56 + regctl image mod \ 57 + ghcr.io/zenfyrdev/xpost:amd64-latest \ 58 + --to-docker \ 59 + --create atcr.io/zenfyr.dev/xpost:amd64-latest 60 + 61 + regctl index create \ 62 + atcr.io/zenfyr.dev/xpost:latest \ 63 + --media-type application/vnd.docker.distribution.manifest.list.v2+json \ 64 + --ref atcr.io/zenfyr.dev/xpost:amd64-latest --platform linux/amd64 \ 65 + --ref atcr.io/zenfyr.dev/xpost:arm64-latest --platform linux/arm64