Skip to content

fix: Install wget for fetching CA's #3

fix: Install wget for fetching CA's

fix: Install wget for fetching CA's #3

Workflow file for this run

name: pgmigrate
on:
workflow_dispatch:
branches:
jobs:
pgmigrate:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: mkdir -p ~/.postgresql
- name: Download certificate
uses: wei/wget@v1
with:

Check failure on line 17 in .github/workflows/pgmigrate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pgmigrate.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
args: "https://storage.yandexcloud.net/cloud-certs/CA.pem" --output-document ~/.postgresql/root.crt
- run: chmod 0600 ~/.postgresql/root.crt
- name: Install pgmigrate
run: pip install yandex-pgmigrate
- name: Apply migrations to database
working-directory: ./src/internal/pgdb
env:
PGHOST: ${{ vars.POSTGRES_HOST }}
PGPORT: ${{ vars.POSTGRES_PORT }}
PGDATABASE: ${{ vars.POSTGRES_DATABASE }}
PGUSER: ${{ secrets.POSTGRES_USER }}
PGPASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
run: pgmigrate -c "sslmode=verify-full target_session_attrs=write" -v -t latest migrate