Skip to content

Commit 829948c

Browse files
authored
Merge branch 'develop' into TheOtherBrian1-patch-1
2 parents e88f73e + c78104d commit 829948c

File tree

208 files changed

+9566
-12498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+9566
-12498
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
run: |
7979
packer init amazon-arm64-nix.pkr.hcl
8080
GIT_SHA=${{github.sha}}
81+
# why is postgresql_major defined here instead of where the _three_ other postgresql_* variables are defined?
8182
packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" amazon-arm64-nix.pkr.hcl
8283
8384
- name: Build AMI stage 2
@@ -143,7 +144,7 @@ jobs:
143144
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
144145
145146
- name: Create release
146-
uses: softprops/action-gh-release@v1
147+
uses: softprops/action-gh-release@v2
147148
with:
148149
name: ${{ steps.process_release_version.outputs.version }}
149150
tag_name: ${{ steps.process_release_version.outputs.version }}

.github/workflows/build-ccache.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,37 @@ jobs:
1111
- name: Checkout Repo
1212
uses: actions/checkout@v3
1313

14+
- name: Load postgres_release values
15+
id: load_postgres_release
16+
uses: mikefarah/yq@master
17+
with:
18+
args: eval '.postgres_release' ansible/vars.yml
19+
# The output will be available as steps.load_postgres_release.outputs.stdout
20+
1421
- name: Run checks
15-
# Update `ami-release.yaml` too if changing constraints.
1622
run: |
17-
SUFFIX=$(sed -E 's/postgres-version = "[0-9\.]+(.*)"/\1/g' common.vars.pkr.hcl)
18-
if [[ -n $SUFFIX ]] ; then
19-
echo "We no longer allow merging RC versions to develop."
20-
exit 1
21-
fi
23+
POSTGRES_RELEASES="${{ steps.load_postgres_release.outputs.stdout }}"
24+
25+
# Iterate through each release
26+
for release in $(echo "$POSTGRES_RELEASES" | yq eval 'keys | .[]' -); do
27+
VERSION=$(echo "$POSTGRES_RELEASES" | yq eval ".\"$release\"" -)
28+
if [[ "$release" == "postgresorioledb-17" ]]; then
29+
# Check for suffix after -orioledb
30+
if [[ "$VERSION" =~ -orioledb(.*) ]]; then
31+
SUFFIX="${BASH_REMATCH[1]}"
32+
if [[ -n "$SUFFIX" ]]; then
33+
echo "We no longer allow merging versions with suffixes after -orioledb."
34+
exit 1
35+
fi
36+
fi
37+
else
38+
# Check for suffix after version digits
39+
if [[ "$VERSION" =~ ([0-9]+\.[0-9]+\.[0-9]+)(.*) ]]; then
40+
SUFFIX="${BASH_REMATCH[2]}"
41+
if [[ -n "$SUFFIX" ]]; then
42+
echo "We no longer allow merging versions with suffixes after version $VERSION."
43+
exit 1
44+
fi
45+
fi
46+
fi
47+
done

.github/workflows/dockerhub-release-15-8.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)