chore: add ci for migrating against devel
All checks were successful
migrate / migrate devel (push) Successful in 1m14s
All checks were successful
migrate / migrate devel (push) Successful in 1m14s
This commit is contained in:
parent
442d4e8ae0
commit
5da43ddf0f
19
.gitea/workflows/migrate-devel.yml
Normal file
19
.gitea/workflows/migrate-devel.yml
Normal file
@ -0,0 +1,19 @@
|
||||
name: 'migrate'
|
||||
on: { push: { branches: ['main'] } }
|
||||
|
||||
jobs:
|
||||
devel:
|
||||
name: 'migrate devel'
|
||||
env:
|
||||
POSTGRES_ROOT_CONNECTION_URL: '${{ secrets.DEVEL_POSTGRES_ROOT_CONNECTION_URL }}'
|
||||
POSTGRES_CONNECTION_URL: '${{ secrets.DEVEL_POSTGRES_CONNECTION_URL }}'
|
||||
steps:
|
||||
- uses: 'actions/checkout@v3'
|
||||
- name: 'install postgres'
|
||||
run: |
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
|
||||
apt-get install -y curl ca-certificates gnupg postgresql-common
|
||||
YES=y sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
|
||||
apt-get install -y postgresql-15
|
||||
- run: 'echo "FOO=bar" > .env && ./scripts/migrate.sh'
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/bash
|
||||
#! /bin/bash
|
||||
|
||||
source ./scripts/env.sh ./.env.schema
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/bash
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/bash
|
||||
#! /bin/bash
|
||||
|
||||
file=${1:-./.env}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#! /usr/bin/bash
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
set -xe
|
||||
|
||||
source ./scripts/env.sh ./.env
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user