File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : [self-hosted, X64]
14
+ strategy :
15
+ matrix :
16
+ include :
17
+ - runner : arm-runner
18
+ arch : arm64
19
+ runs-on : ${{ matrix.runner }}
15
20
timeout-minutes : 150
16
21
permissions :
17
22
contents : write
22
27
- name : Checkout Repo
23
28
uses : actions/checkout@v2
24
29
30
+ - id : args
31
+ uses : mikefarah/yq@master
32
+ with :
33
+ cmd : yq 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' 'ansible/vars.yml'
34
+ - run : docker context create builders
35
+ - uses : docker/setup-buildx-action@v2
36
+ with :
37
+ endpoint : builders
38
+ - uses : docker/build-push-action@v3
39
+ with :
40
+ push : false
41
+ load : true
42
+ build-args : |
43
+ ${{ steps.args.outputs.result }}
44
+ target : extensions
45
+ tags : supabase/postgres:extensions
46
+ platforms : linux/${{ matrix.arch }}
47
+ cache-from : type=gha
48
+ cache-to : type=gha,mode=max
49
+ - name : Extract built packages
50
+ run : |
51
+ mkdir -p ansible/extensions/packages
52
+ docker save supabase/postgres:extensions | tar xv -C ansible/extensions
53
+ for layer in ansible/extensions/*/layer.tar; do
54
+ tar xvf "$layer" -C ansible/extensions/packages --strip-components 1
55
+ done
56
+
25
57
- name : Build AMI
26
58
run : |
27
59
GIT_SHA=${{github.sha}}
You can’t perform that action at this time.
0 commit comments