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

try atcr.io.. 2

zenfyr.dev a03f0e52 5f0de459

verified
+13 -10
+13 -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 \ 32 + --destination=atcr.io/zenfyr.dev/xpost:arm64-latest \ 35 33 --custom-platform=linux/amd64 36 34 37 35 - name: build arm64 ··· 40 38 --context=dir://. \ 41 39 --dockerfile=Containerfile \ 42 40 --verbosity=info \ 43 - --destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \ 41 + --destination=ghcr.io/zenfyrdev/xpost:arm64-latest \ 42 + --destination=atcr.io/zenfyr.dev/xpost:arm64-latest \ 44 43 --custom-platform=linux/arm64 45 44 46 45 - name: tag latest artifact 47 46 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 47 + regctl index create ghcr.io/zenfyrdev/xpost:latest \ 48 + --ref ghcr.io/zenfyrdev/xpost:amd64-latest --platform linux/amd64 \ 49 + --ref ghcr.io/zenfyrdev/xpost:arm64-latest --platform linux/arm64 50 + 51 + regctl index create atcr.io/zenfyr.dev/xpost:latest \ 52 + --ref atcr.io/zenfyr.dev/xpost:amd64-latest --platform linux/amd64 \ 53 + --ref atcr.io/zenfyr.dev/xpost:arm64-latest --platform linux/arm64