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

Revert "try atcr.io.. 2"

This reverts commit a03f0e527277af4b57417d9694ffe9529373caf4.

zenfyr.dev a388a755 231d364a

verified
Changed files
+10 -13
.tangled
workflows
+10 -13
.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 "zenfyrdev:$GHCR_PAT" | base64 -w0)"}, "atcr.io": {"auth": "$(echo -n "zenfyr.dev:$APP_PASSWORD" | base64 -w0)"}}}
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
EOF
cat > $HOME/.regctl/config.json <<EOF
-
{"hosts": {"ghcr.io": {"user": "zenfyrdev","pass": "$GHCR_PAT"}, "atcr.io": {"user": "zenfyr.dev","pass": "$APP_PASSWORD"}}}
+
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
EOF
- name: build amd64
···
--context=dir://. \
--dockerfile=Containerfile \
--verbosity=info \
-
--destination=ghcr.io/zenfyrdev/xpost:amd64-latest \
-
--destination=atcr.io/zenfyr.dev/xpost:amd64-latest \
+
--destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \
--custom-platform=linux/amd64
- name: build arm64
···
--context=dir://. \
--dockerfile=Containerfile \
--verbosity=info \
-
--destination=ghcr.io/zenfyrdev/xpost:arm64-latest \
-
--destination=atcr.io/zenfyr.dev/xpost:arm64-latest \
+
--destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \
--custom-platform=linux/arm64
- name: tag latest artifact
command: |
-
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
-
-
regctl index create atcr.io/zenfyr.dev/xpost:latest \
-
--ref atcr.io/zenfyr.dev/xpost:amd64-latest --platform linux/amd64 \
-
--ref atcr.io/zenfyr.dev/xpost:arm64-latest --platform linux/arm64
+
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