This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
name: 'migrate'
|
||||
on: { push: { branches: ['main'] } }
|
||||
name: 'migrate-devel'
|
||||
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 }}'
|
||||
migrate-devel:
|
||||
steps:
|
||||
- uses: 'actions/checkout@v3'
|
||||
- name: 'install postgres'
|
||||
@@ -16,4 +12,10 @@ jobs:
|
||||
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'
|
||||
- name: 'install postgres'
|
||||
run: |
|
||||
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
|
||||
sh /tmp/get-docker.sh
|
||||
- run: './scripts/migrate.sh'
|
||||
env:
|
||||
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'
|
||||
|
||||
17
.gitea/workflows/migrate-stage.yml
Normal file
17
.gitea/workflows/migrate-stage.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: 'migrate-devel'
|
||||
on: {push: {branches: ['main']}}
|
||||
|
||||
jobs:
|
||||
migrate-devel:
|
||||
env:
|
||||
POSTGRES_URI: '${{ secrets.devel_postgres_uri }}'
|
||||
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: './scripts/migrate.sh'
|
||||
Reference in New Issue
Block a user