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
Changed files
+25 -10
.tangled
workflows
+25 -10
.tangled/workflows/build-images.yml
···
- kaniko
- regctl
-
environment:
-
GHCR_USER: "zenfyrdev"
-
steps:
- name: create auth configs
command: |
mkdir -p $HOME/.docker $HOME/.regctl
cat > $HOME/.docker/config.json <<EOF
-
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "zenfyrdev:$GHCR_PAT" | base64 -w0)"}, "atcr.io": {"auth": "$(echo -n "zenfyr.dev:$APP_PASSWORD" | base64 -w0)"}}}
EOF
cat > $HOME/.regctl/config.json <<EOF
-
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
+
{"hosts": {"ghcr.io": {"user": "zenfyrdev","pass": "$GHCR_PAT"}, "atcr.io": {"user": "zenfyr.dev","pass": "$APP_PASSWORD"}}}
EOF
- name: build amd64
···
--context=dir://. \
--dockerfile=Containerfile \
--verbosity=info \
-
--destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \
+
--destination=ghcr.io/zenfyrdev/xpost:amd64-latest \
--custom-platform=linux/amd64
- name: build arm64
···
--context=dir://. \
--dockerfile=Containerfile \
--verbosity=info \
-
--destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \
+
--destination=ghcr.io/zenfyrdev/xpost:arm64-latest \
--custom-platform=linux/arm64
- name: tag latest artifact
command: |
-
regctl index create ghcr.io/$GHCR_USER/xpost:latest \
-
--ref ghcr.io/$GHCR_USER/xpost:amd64-latest --platform linux/amd64 \
-
--ref ghcr.io/$GHCR_USER/xpost:arm64-latest --platform linux/arm64
+
regctl index create ghcr.io/zenfyrdev/xpost:latest \
+
--ref ghcr.io/zenfyrdev/xpost:amd64-latest --platform linux/amd64 \
+
--ref ghcr.io/zenfyrdev/xpost:arm64-latest --platform linux/arm64
+
+
- name: push to atcr.io
+
command: |
+
regctl image mod \
+
ghcr.io/zenfyrdev/xpost:arm64-latest \
+
--to-docker \
+
--create atcr.io/zenfyr.dev/xpost:arm64-latest
+
+
regctl image mod \
+
ghcr.io/zenfyrdev/xpost:amd64-latest \
+
--to-docker \
+
--create atcr.io/zenfyr.dev/xpost:amd64-latest
+
+
regctl index create \
+
atcr.io/zenfyr.dev/xpost:latest \
+
--media-type application/vnd.docker.distribution.manifest.list.v2+json \
+
--ref atcr.io/zenfyr.dev/xpost:amd64-latest --platform linux/amd64 \
+
--ref atcr.io/zenfyr.dev/xpost:arm64-latest --platform linux/arm64