diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90fff2d..306b886 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,6 @@ jobs: oauth-client-browser: ${{ steps.filter.outputs.oauth-client-browser }} oauth-client-node: ${{ steps.filter.outputs.oauth-client-node }} lex-agent: ${{ steps.filter.outputs.lex-agent }} - postgres: ${{ steps.filter.outputs.postgres }} steps: - name: Checkout repository uses: actions/checkout@v6 @@ -49,9 +48,6 @@ jobs: lex-agent: - 'packages/oauth-client/**' - 'packages/lex-agent/**' - postgres: - - 'docker/Dockerfile.postgres' - - 'docker/init-databases.sh' # --------------------------------------------------------------------------- # Server — unit tests, e2e tests, frontend build, lint @@ -626,43 +622,6 @@ jobs: # ${{ env.ATCR_IMAGE }}@${{ steps.build-atcr.outputs.digest }} # fi - # --------------------------------------------------------------------------- - # Docker — Postgres image (only when Postgres Docker files change) - # --------------------------------------------------------------------------- - docker-postgres: - needs: changes - if: >- - needs.changes.outputs.postgres == 'true' - runs-on: depot-ubuntu-24.04 - permissions: - contents: read - packages: write - env: - GHCR_POSTGRES_IMAGE: ghcr.io/${{ github.repository }}-postgres - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: docker - file: docker/Dockerfile.postgres - push: true - tags: ${{ env.GHCR_POSTGRES_IMAGE }}:latest - cache-from: type=gha,scope=postgres - cache-to: type=gha,scope=postgres,mode=max,ignore-error=true - # --------------------------------------------------------------------------- # Mirror to Tangled # --------------------------------------------------------------------------- diff --git a/docker-compose.yml b/docker-compose.yml index 4fc0374..c147bc3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,6 @@ services: # - "5432:5432" # volumes: # - pgdata:/var/lib/postgresql/data - # - ./docker/init-databases.sh:/docker-entrypoint-initdb.d/init-databases.sh # healthcheck: # test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] # interval: 5s diff --git a/docker/Dockerfile.postgres b/docker/Dockerfile.postgres deleted file mode 100644 index 4e5214e..0000000 --- a/docker/Dockerfile.postgres +++ /dev/null @@ -1,2 +0,0 @@ -FROM ghcr.io/railwayapp-templates/postgres-ssl:17 -COPY init-databases.sh /docker-entrypoint-initdb.d/ diff --git a/docker/init-databases.sh b/docker/init-databases.sh deleted file mode 100755 index 9bdd905..0000000 --- a/docker/init-databases.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e - -psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL - CREATE DATABASE tap; -EOSQL