tangled
alpha
login
or
join now
zenfyr.dev
/
xpost
2
fork
atom
social media crossposting tool. 3rd time's the charm
mastodon
misskey
crossposting
bluesky
2
fork
atom
overview
issues
1
pulls
pipelines
Create build-images.yml
zenfyr.dev
5 months ago
4f45dbbe
5a0d5106
verified
This commit was signed with the committer's
known signature
.
zenfyr.dev
SSH Key Fingerprint:
SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE=
1/1
build-images.yml
success
2m 10s
+52
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
build-images.yml
+52
.tangled/workflows/build-images.yml
reviewed
···
1
1
+
when:
2
2
+
- event: ["push"]
3
3
+
branch: master
4
4
+
5
5
+
engine: nixery
6
6
+
7
7
+
dependencies:
8
8
+
nixpkgs:
9
9
+
- kaniko
10
10
+
- regctl
11
11
+
12
12
+
environment:
13
13
+
GHCR_USER: "zenfyrdev"
14
14
+
HOME: /root
15
15
+
16
16
+
steps:
17
17
+
- name: create auth configs
18
18
+
command: |
19
19
+
mkdir $HOME
20
20
+
mkdir $HOME/.docker $HOME/.regctl
21
21
+
22
22
+
cat > $HOME/.docker/config.json <<EOF
23
23
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
24
24
+
EOF
25
25
+
26
26
+
cat > $HOME/.regctl/config.json <<EOF
27
27
+
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
28
28
+
EOF
29
29
+
30
30
+
- name: build amd64
31
31
+
command: |
32
32
+
executor \
33
33
+
--context=dir://. \
34
34
+
--dockerfile=Containerfile \
35
35
+
--verbosity=info \
36
36
+
--destination=ghcr.io/$GHCR_USER/xpost:amd64-latest \
37
37
+
--custom-platform=linux/amd64
38
38
+
39
39
+
- name: build arm64
40
40
+
command: |
41
41
+
executor \
42
42
+
--context=dir://. \
43
43
+
--dockerfile=Containerfile \
44
44
+
--verbosity=info \
45
45
+
--destination=ghcr.io/$GHCR_USER/xpost:arm64-latest \
46
46
+
--custom-platform=linux/arm64
47
47
+
48
48
+
- name: tag latest artifact
49
49
+
command: |
50
50
+
regctl index create ghcr.io/$GHCR_USER/xpost:latest \
51
51
+
--ref ghcr.io/$GHCR_USER/xpost:amd64-latest --platform linux/amd64 \
52
52
+
--ref ghcr.io/$GHCR_USER/xpost:arm64-latest --platform linux/arm64