Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused/deprecated code #1427

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions .github/workflows/build-ccache.yml

This file was deleted.

38 changes: 32 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,37 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Load postgres_release values
id: load_postgres_release
uses: mikefarah/yq@master
with:
args: eval '.postgres_release' ansible/vars.yml
# The output will be available as steps.load_postgres_release.outputs.stdout

- name: Run checks
# Update `ami-release.yaml` too if changing constraints.
run: |
SUFFIX=$(sed -E 's/postgres-version = "[0-9\.]+(.*)"/\1/g' common.vars.pkr.hcl)
if [[ -n $SUFFIX ]] ; then
echo "We no longer allow merging RC versions to develop."
exit 1
fi
POSTGRES_RELEASES="${{ steps.load_postgres_release.outputs.stdout }}"

# Iterate through each release
for release in $(echo "$POSTGRES_RELEASES" | yq eval 'keys | .[]' -); do
VERSION=$(echo "$POSTGRES_RELEASES" | yq eval ".\"$release\"" -)
if [[ "$release" == "postgresorioledb-17" ]]; then
# Check for suffix after -orioledb
if [[ "$VERSION" =~ -orioledb(.*) ]]; then
SUFFIX="${BASH_REMATCH[1]}"
if [[ -n "$SUFFIX" ]]; then
echo "We no longer allow merging versions with suffixes after -orioledb."
exit 1
fi
fi
else
# Check for suffix after version digits
if [[ "$VERSION" =~ ([0-9]+\.[0-9]+\.[0-9]+)(.*) ]]; then
SUFFIX="${BASH_REMATCH[2]}"
if [[ -n "$SUFFIX" ]]; then
echo "We no longer allow merging versions with suffixes after version $VERSION."
exit 1
fi
fi
fi
done
104 changes: 0 additions & 104 deletions .github/workflows/dockerhub-release-15-8.yml

This file was deleted.

124 changes: 0 additions & 124 deletions .github/workflows/dockerhub-release-aio.yml

This file was deleted.

Loading