Complete M7.2 PostgreSQL adapter and migration bootstrap
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite: [checks, tsan, ecs]
|
||||
suite: [checks, tsan, ecs, postgres]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
@@ -47,6 +47,35 @@ jobs:
|
||||
--tmpfs /tmp:rw,noexec,nosuid,size=16m,mode=1777 "$ci_image"
|
||||
fi
|
||||
|
||||
postgres-tools:
|
||||
needs: [checks]
|
||||
runs-on: ${{ vars.CI_RUNNER_LABEL || 'ubuntu-22.04' }}
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Build and smoke-test migration tooling
|
||||
run: |
|
||||
set -eu
|
||||
docker build --file deploy/docker/Dockerfile --target postgres-tools \
|
||||
--build-arg "UBUNTU_IMAGE=$UBUNTU_IMAGE" \
|
||||
--tag "aevolution-postgres-tools:${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" .
|
||||
docker run --rm --network none --read-only --cap-drop ALL \
|
||||
--entrypoint /opt/postgres/bin/psql \
|
||||
"aevolution-postgres-tools:${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" --version
|
||||
- name: Publish configured migration tools
|
||||
if: ${{ gitea.ref == 'refs/heads/main' && gitea.event_name != 'pull_request' && vars.HARBOR_POSTGRES_REPOSITORY != '' }}
|
||||
env:
|
||||
HARBOR_PROJECT: ${{ vars.HARBOR_PROJECT }}
|
||||
HARBOR_REPOSITORY: ${{ vars.HARBOR_POSTGRES_REPOSITORY }}
|
||||
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
|
||||
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
||||
run: |
|
||||
export SOURCE_IMAGE="aevolution-postgres-tools:${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
||||
bash tools/ci/publish-image.sh
|
||||
|
||||
image:
|
||||
needs: [checks]
|
||||
runs-on: ${{ vars.CI_RUNNER_LABEL || 'ubuntu-22.04' }}
|
||||
|
||||
Reference in New Issue
Block a user