chore: fix actions
This commit is contained in:
parent
94ab122d74
commit
9abd45a999
@ -1,5 +1,5 @@
|
|||||||
name: 'migrate-devel'
|
name: 'migrate-devel'
|
||||||
on: {push: {tags: ['devel@*']}}
|
on: { push: { branches: ['migrations'] } }
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
migrate-devel:
|
migrate-devel:
|
||||||
@ -8,8 +8,8 @@ jobs:
|
|||||||
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3'
|
- uses: 'actions/checkout@v3'
|
||||||
with: { fetch-depth: 0 }
|
with: { fetch-depth: 0, ref: 'main' }
|
||||||
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight'
|
- run: './scripts/migrate.sh'
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: 'unix:///run/user/1001/docker.sock'
|
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
|
||||||
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'
|
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: 'migrate-stage'
|
name: 'migrate-stage'
|
||||||
on: {push: {tags: ['stage@*']}}
|
on: { push: { branches: ['migrations'] } }
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
migrate-stage:
|
migrate-stage:
|
||||||
@ -8,8 +8,8 @@ jobs:
|
|||||||
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3'
|
- uses: 'actions/checkout@v3'
|
||||||
with: { fetch-depth: 0 }
|
with: { fetch-depth: 0, ref: 'main' }
|
||||||
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight'
|
- run: './scripts/migrate.sh'
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: 'unix:///run/user/1001/docker.sock'
|
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
|
||||||
POSTGRES_URI: '${{ secrets.POSTGRES_STAGE_URI }}'
|
POSTGRES_URI: '${{ secrets.POSTGRES_STAGE_URI }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user