@@ -72,12 +72,12 @@ jobs:
72
72
73
73
- uses : docker/build-push-action@v5
74
74
with :
75
- load : true
76
75
build-args : |
77
76
${{ steps.args.outputs.result }}
78
77
target : extensions
79
78
tags : supabase/postgres:extensions
80
79
platforms : linux/${{ matrix.arch }}
80
+ outputs : type=tar,dest=/tmp/extensions.tar
81
81
cache-from : |
82
82
type=gha,scope=${{ github.ref_name }}-extensions
83
83
type=gha,scope=${{ github.base_ref }}-extensions
@@ -86,19 +86,15 @@ jobs:
86
86
87
87
- name : Extract built packages
88
88
run : |
89
- mkdir -p /tmp/extensions ansible/files/extensions
90
- docker save supabase/postgres:extensions | tar xv -C /tmp/extensions
91
- for layer in /tmp/extensions/*/layer.tar; do
92
- tar xvf "$layer" -C ansible/files/extensions --strip-components 1
93
- done
89
+ mkdir -p ansible/files/extensions
90
+ tar xvf /tmp/extensions.tar -C ansible/files/extensions --strip-components 1
94
91
95
92
- id : version
96
93
run : echo "${{ steps.args.outputs.result }}" | grep "postgresql" >> "$GITHUB_OUTPUT"
97
94
98
95
- name : Build Postgres deb
99
96
uses : docker/build-push-action@v5
100
97
with :
101
- load : true
102
98
file : docker/Dockerfile
103
99
target : pg-deb
104
100
build-args : |
@@ -109,6 +105,7 @@ jobs:
109
105
CPPFLAGS=-mcpu=${{ matrix.mcpu }}
110
106
tags : supabase/postgres:deb
111
107
platforms : linux/${{ matrix.arch }}
108
+ outputs : type=tar,dest=/tmp/pg-deb.tar
112
109
cache-from : |
113
110
type=gha,scope=${{ github.ref_name }}-deb
114
111
type=gha,scope=${{ github.base_ref }}-deb
@@ -117,11 +114,8 @@ jobs:
117
114
118
115
- name : Extract Postgres deb
119
116
run : |
120
- mkdir -p /tmp/build ansible/files/postgres
121
- docker save supabase/postgres:deb | tar xv -C /tmp/build
122
- for layer in /tmp/build/*/layer.tar; do
123
- tar xvf "$layer" -C ansible/files/postgres --strip-components 1
124
- done
117
+ mkdir -p ansible/files/postgres
118
+ tar xvf /tmp/pg-deb.tar -C ansible/files/postgres --strip-components 1
125
119
126
120
# Packer doesn't support skipping registering the AMI for the ebssurrogate
127
121
# builder, so we register an AMI with a fixed name and run tests on an
0 commit comments