···
13
-
GHCR_USER: "zenfyrdev"
- name: create auth configs
mkdir -p $HOME/.docker $HOME/.regctl
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)"}}}
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"}}}
···
--dockerfile=Containerfile \
34
-
--destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \
31
+
--destination=ghcr.io/zenfyrdev/xpost:amd64-latest \
--custom-platform=linux/amd64
···
--dockerfile=Containerfile \
43
-
--destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \
40
+
--destination=ghcr.io/zenfyrdev/xpost:arm64-latest \
--custom-platform=linux/arm64
- name: tag latest artifact
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
49
+
- name: push to atcr.io
52
+
ghcr.io/zenfyrdev/xpost:arm64-latest \
54
+
--create atcr.io/zenfyr.dev/xpost:arm64-latest
57
+
ghcr.io/zenfyrdev/xpost:amd64-latest \
59
+
--create atcr.io/zenfyr.dev/xpost:amd64-latest
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