|
40 | 40 | exit 1
|
41 | 41 | fi
|
42 | 42 |
|
43 |
| - # - id: args |
44 |
| - # uses: mikefarah/yq@master |
45 |
| - # with: |
46 |
| - # cmd: yq 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' 'ansible/vars.yml' |
47 |
| - # - run: docker context create builders |
48 |
| - # - uses: docker/setup-buildx-action@v3 |
49 |
| - # with: |
50 |
| - # endpoint: builders |
51 |
| - # - uses: docker/build-push-action@v5 |
52 |
| - # with: |
53 |
| - # build-args: | |
54 |
| - # ${{ steps.args.outputs.result }} |
55 |
| - # target: extensions |
56 |
| - # tags: supabase/postgres:extensions |
57 |
| - # platforms: linux/${{ matrix.arch }} |
58 |
| - # outputs: type=tar,dest=/tmp/extensions.tar |
59 |
| - # cache-from: type=gha,scope=${{ github.ref_name }}-latest-${{ matrix.arch }} |
60 |
| - # # No need to export extensions cache because latest depends on it |
61 |
| - |
62 |
| - # - name: Extract built packages |
63 |
| - # run: | |
64 |
| - # mkdir -p ansible/files/extensions |
65 |
| - # tar xvf /tmp/extensions.tar -C ansible/files/extensions --strip-components 1 |
66 |
| - # TODO remove this block as extensions are build in nix prior to this step |
67 |
| - |
68 |
| - # - id: version |
69 |
| - # run: echo "${{ steps.args.outputs.result }}" | grep "postgresql" >> "$GITHUB_OUTPUT" |
70 |
| - # - name: Build Postgres deb |
71 |
| - # uses: docker/build-push-action@v5 |
72 |
| - # with: |
73 |
| - # file: docker/Dockerfile |
74 |
| - # target: pg-deb |
75 |
| - # build-args: | |
76 |
| - # ubuntu_release=${{ matrix.ubuntu_release }} |
77 |
| - # ubuntu_release_no=${{ matrix.ubuntu_version }} |
78 |
| - # postgresql_major=${{ steps.version.outputs.postgresql_major }} |
79 |
| - # postgresql_release=${{ steps.version.outputs.postgresql_release }} |
80 |
| - # CPPFLAGS=-mcpu=${{ matrix.mcpu }} |
81 |
| - # tags: supabase/postgres:deb |
82 |
| - # platforms: linux/${{ matrix.arch }} |
83 |
| - # outputs: type=tar,dest=/tmp/pg-deb.tar |
84 |
| - # cache-from: type=gha,scope=${{ github.ref_name }}-deb |
85 |
| - # cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-deb |
86 |
| - # - name: Extract Postgres deb |
87 |
| - # run: | |
88 |
| - # mkdir -p ansible/files/postgres |
89 |
| - # tar xvf /tmp/pg-deb.tar -C ansible/files/postgres --strip-components 1 |
90 |
| - #TODO remove this block as deb is build in nix prior to this step |
| 43 | + # extensions are build in nix prior to this step |
| 44 | + # so we can just use the binaries from the nix store |
| 45 | + # for postgres, extensions and wrappers |
91 | 46 |
|
92 | 47 | - name: Build AMI stage 1
|
93 | 48 | run: |
|
|
0 commit comments