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
ci: add build workflow
zenfyr.dev
3 weeks ago
efbcc50c
ad62d8ff
verified
This commit was signed with the committer's
known signature
.
zenfyr.dev
SSH Key Fingerprint:
SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE=
1/2
build-images.yml
failed
42s
run-tests.yml
success
14s
+50
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
build-images.yml
+50
.tangled/workflows/build-images.yml
···
1
1
+
when:
2
2
+
- event: ["push", "manual"]
3
3
+
branch: ["next"]
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
+
15
15
+
steps:
16
16
+
- name: create auth configs
17
17
+
command: |
18
18
+
mkdir -p $HOME/.docker $HOME/.regctl
19
19
+
20
20
+
cat > $HOME/.docker/config.json <<EOF
21
21
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
22
22
+
EOF
23
23
+
24
24
+
cat > $HOME/.regctl/config.json <<EOF
25
25
+
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
26
26
+
EOF
27
27
+
28
28
+
- name: build amd64
29
29
+
command: |
30
30
+
executor \
31
31
+
--context=dir://. \
32
32
+
--dockerfile=Containerfile \
33
33
+
--verbosity=info \
34
34
+
--destination=ghcr.io/$GHCR_USER/xpost:amd64-next \
35
35
+
--custom-platform=linux/amd64
36
36
+
37
37
+
- name: build arm64
38
38
+
command: |
39
39
+
executor \
40
40
+
--context=dir://. \
41
41
+
--dockerfile=Containerfile \
42
42
+
--verbosity=info \
43
43
+
--destination=ghcr.io/$GHCR_USER/xpost:arm64-next \
44
44
+
--custom-platform=linux/arm64
45
45
+
46
46
+
- name: tag latest artifact
47
47
+
command: |
48
48
+
regctl index create ghcr.io/$GHCR_USER/xpost:next \
49
49
+
--ref ghcr.io/$GHCR_USER/xpost:amd64-next --platform linux/amd64 \
50
50
+
--ref ghcr.io/$GHCR_USER/xpost:arm64-next --platform linux/arm64