File tree 7 files changed +31
-21
lines changed
7 files changed +31
-21
lines changed Original file line number Diff line number Diff line change 24
24
include :
25
25
- runner : arm-runner
26
26
arch : arm64
27
- ubuntu : focal
27
+ ubuntu_release : bionic
28
+ ubuntu_version : 18.04
28
29
mcpu : neoverse-n1
29
30
runs-on : ${{ matrix.runner }}
30
31
timeout-minutes : 150
@@ -74,18 +75,19 @@ jobs:
74
75
file : docker/Dockerfile
75
76
target : pg-deb
76
77
build-args : |
77
- ubuntu_release=${{ matrix.ubuntu }}
78
+ ubuntu_release=${{ matrix.ubuntu_release }}
79
+ ubuntu_version=${{ matrix.ubuntu_version }}
78
80
postgresql_major=${{ steps.version.outputs.postgresql_major }}
79
81
postgresql_release=${{ steps.version.outputs.postgresql_release }}
80
82
CPPFLAGS=-mcpu=${{ matrix.mcpu }}
81
- tags : supabase/postgres:deb
83
+ tags : supabase/postgres:deb-u18
82
84
platforms : linux/${{ matrix.arch }}
83
85
cache-from : type=gha
84
86
cache-to : type=gha,mode=max
85
87
- name : Extract Postgres deb
86
88
run : |
87
89
mkdir -p /tmp/build ansible/files/postgres
88
- docker save supabase/postgres:deb | tar xv -C /tmp/build
90
+ docker save supabase/postgres:deb-u18 | tar xv -C /tmp/build
89
91
for layer in /tmp/build/*/layer.tar; do
90
92
tar xvf "$layer" -C ansible/files/postgres --strip-components 1
91
93
done
Original file line number Diff line number Diff line change 16
16
include :
17
17
- runner : arm-runner
18
18
arch : arm64
19
- ubuntu : focal
19
+ ubuntu_release : focal
20
+ ubuntu_version : 20.04
20
21
mcpu : neoverse-n1
21
22
runs-on : ${{ matrix.runner }}
22
23
timeout-minutes : 150
66
67
file : docker/Dockerfile
67
68
target : pg-deb
68
69
build-args : |
69
- ubuntu_release=${{ matrix.ubuntu }}
70
+ ubuntu_release=${{ matrix.ubuntu_release }}
71
+ ubuntu_release_no=${{ matrix.ubuntu_version }}
70
72
postgresql_major=${{ steps.version.outputs.postgresql_major }}
71
73
postgresql_release=${{ steps.version.outputs.postgresql_release }}
72
74
CPPFLAGS=-mcpu=${{ matrix.mcpu }}
@@ -136,15 +138,15 @@ jobs:
136
138
tag_name : ${{ steps.process_release_version.outputs.version }}
137
139
target_commitish : ${{github.sha}}
138
140
139
- - name : Slack Notification on Failure
140
- if : ${{ failure() }}
141
- uses : rtCamp/action-slack-notify@v2
142
- env :
143
- SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
144
- SLACK_USERNAME : ' gha-failures-notifier'
145
- SLACK_COLOR : ' danger'
146
- SLACK_MESSAGE : ' Building Postgres AMI failed'
147
- SLACK_FOOTER : ' '
141
+ # - name: Slack Notification on Failure
142
+ # if: ${{ failure() }}
143
+ # uses: rtCamp/action-slack-notify@v2
144
+ # env:
145
+ # SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
146
+ # SLACK_USERNAME: 'gha-failures-notifier'
147
+ # SLACK_COLOR: 'danger'
148
+ # SLACK_MESSAGE: 'Building Postgres AMI failed'
149
+ # SLACK_FOOTER: ''
148
150
149
151
- name : Cleanup resources on build cancellation
150
152
if : ${{ cancelled() }}
Original file line number Diff line number Diff line change 6
6
- name : Collect Postgres binaries - collect binaries and libraries
7
7
copy :
8
8
remote_src : yes
9
- src : /usr/lib/postgresql/{{ item }}/
9
+ src : /usr/lib/postgresql/{{ postgresql_major }}/{{ item }}/
10
10
dest : /tmp/pg_binaries/{{ postgresql_major }}/{{ item }}/
11
11
with_items :
12
12
- bin
Original file line number Diff line number Diff line change 15
15
- clang-12
16
16
update_cache : yes
17
17
cache_valid_time : 3600
18
- when : ansible_distribution_version ! = "18.04"
18
+ when : ansible_distribution_version = = "18.04"
19
19
20
20
- name : supautils - download latest release
21
21
get_url :
Original file line number Diff line number Diff line change 8
8
repo : " deb [ trusted=yes ] file:///tmp/build ./"
9
9
state : present
10
10
11
+ - name : Postgres install deps - Ubuntu 18.04 compat
12
+ ansible.builtin.apt :
13
+ deb : " http://ftp.debian.org/debian/pool/main/i/init-system-helpers/init-system-helpers_1.60_all.deb"
14
+ when : ansible_distribution_version == "18.04"
15
+
11
16
- name : Postgres - install commons
12
17
apt :
13
18
name : postgresql-common
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.98-rc0 "
1
+ postgres-version = " 15.1.0.98-rc1 "
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ ARG ubuntu_release=focal
2
2
FROM ubuntu:${ubuntu_release} as base
3
3
4
4
ARG ubuntu_release
5
+ ARG ubuntu_release_no
5
6
ARG postgresql_major=15
6
7
ARG postgresql_release=${postgresql_major}.1
7
8
@@ -39,8 +40,8 @@ RUN apt-get build-dep -y postgresql-common pgdg-keyring && \
39
40
dpkg-scanpackages . > Packages && \
40
41
apt-get -o Acquire::GzipIndexes=false update
41
42
42
- RUN apt-get build-dep -y "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg20.04 +1" && \
43
- apt-get source --compile "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg20.04 +1" && \
43
+ RUN apt-get build-dep -y "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg${ubuntu_release_no} +1" && \
44
+ apt-get source --compile "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg${ubuntu_release_no} +1" && \
44
45
dpkg-scanpackages . > Packages && \
45
46
apt-get -o Acquire::GzipIndexes=false update
46
47
@@ -60,7 +61,7 @@ RUN echo "deb [ trusted=yes ] file:///tmp/build ./" > /etc/apt/sources.list.d/te
60
61
apt-get -o Acquire::GzipIndexes=false update && \
61
62
apt-get install -y --no-install-recommends postgresql-common && \
62
63
sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf && \
63
- apt-get install -y --no-install-recommends "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg20.04 +1" && \
64
+ apt-get install -y --no-install-recommends "postgresql-${postgresql_major}=${postgresql_release}-1.pgdg${ubuntu_release_no} +1" && \
64
65
rm -rf /var/lib/apt/lists/* && \
65
66
rm -rf /tmp/build /etc/apt/sources.list.d/temp.list
66
67
You can’t perform that action at this time.
0 commit comments