···
13
+
GHCR_USER: "zenfyrdev"
- name: create auth configs
mkdir -p $HOME/.docker $HOME/.regctl
cat > $HOME/.docker/config.json <<EOF
18
-
{"auths": {"ghcr.io": {"auth": "$(echo -n "zenfyrdev:$GHCR_PAT" | base64 -w0)"}, "atcr.io": {"auth": "$(echo -n "zenfyr.dev:$APP_PASSWORD" | base64 -w0)"}}}
21
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
cat > $HOME/.regctl/config.json <<EOF
22
-
{"hosts": {"ghcr.io": {"user": "zenfyrdev","pass": "$GHCR_PAT"}, "atcr.io": {"user": "zenfyr.dev","pass": "$APP_PASSWORD"}}}
25
+
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
···
--dockerfile=Containerfile \
31
-
--destination=ghcr.io/zenfyrdev/xpost:amd64-latest \
32
-
--destination=atcr.io/zenfyr.dev/xpost:amd64-latest \
34
+
--destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \
--custom-platform=linux/amd64
···
--dockerfile=Containerfile \
41
-
--destination=ghcr.io/zenfyrdev/xpost:arm64-latest \
42
-
--destination=atcr.io/zenfyr.dev/xpost:arm64-latest \
43
+
--destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \
--custom-platform=linux/arm64
- name: tag latest artifact
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
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
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