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
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
when:
2
+
- event: ["push", "manual"]
3
+
branch: ["next"]
4
+
5
+
engine: nixery
6
+
7
+
dependencies:
8
+
nixpkgs:
9
+
- kaniko
10
+
- regctl
11
+
12
+
environment:
13
+
GHCR_USER: "zenfyrdev"
14
+
15
+
steps:
16
+
- name: create auth configs
17
+
command: |
18
+
mkdir -p $HOME/.docker $HOME/.regctl
19
+
20
+
cat > $HOME/.docker/config.json <<EOF
21
+
{"auths": {"ghcr.io": {"auth": "$(echo -n "$GHCR_USER:$GHCR_PAT" | base64 -w0)"}}}
22
+
EOF
23
+
24
+
cat > $HOME/.regctl/config.json <<EOF
25
+
{"hosts": {"ghcr.io": {"user": "$GHCR_USER","pass": "$GHCR_PAT"}}}
26
+
EOF
27
+
28
+
- name: build amd64
29
+
command: |
30
+
executor \
31
+
--context=dir://. \
32
+
--dockerfile=Containerfile \
33
+
--verbosity=info \
34
+
--destination=ghcr.io/$GHCR_USER/xpost:amd64-next \
35
+
--custom-platform=linux/amd64
36
+
37
+
- name: build arm64
38
+
command: |
39
+
executor \
40
+
--context=dir://. \
41
+
--dockerfile=Containerfile \
42
+
--verbosity=info \
43
+
--destination=ghcr.io/$GHCR_USER/xpost:arm64-next \
44
+
--custom-platform=linux/arm64
45
+
46
+
- name: tag latest artifact
47
+
command: |
48
+
regctl index create ghcr.io/$GHCR_USER/xpost:next \
49
+
--ref ghcr.io/$GHCR_USER/xpost:amd64-next --platform linux/amd64 \
50
+
--ref ghcr.io/$GHCR_USER/xpost:arm64-next --platform linux/arm64