chore: fix actions
This commit is contained in:
parent
94ab122d74
commit
9abd45a999
@ -1,5 +1,5 @@
|
||||
name: 'migrate-devel'
|
||||
on: {push: {tags: ['devel@*']}}
|
||||
on: { push: { branches: ['migrations'] } }
|
||||
|
||||
jobs:
|
||||
migrate-devel:
|
||||
@ -8,8 +8,8 @@ jobs:
|
||||
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
||||
steps:
|
||||
- uses: 'actions/checkout@v3'
|
||||
with: { fetch-depth: 0 }
|
||||
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight'
|
||||
with: { fetch-depth: 0, ref: 'main' }
|
||||
- run: './scripts/migrate.sh'
|
||||
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 }}'
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: 'migrate-stage'
|
||||
on: {push: {tags: ['stage@*']}}
|
||||
on: { push: { branches: ['migrations'] } }
|
||||
|
||||
jobs:
|
||||
migrate-stage:
|
||||
@ -8,8 +8,8 @@ jobs:
|
||||
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
||||
steps:
|
||||
- uses: 'actions/checkout@v3'
|
||||
with: { fetch-depth: 0 }
|
||||
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight'
|
||||
with: { fetch-depth: 0, ref: 'main' }
|
||||
- run: './scripts/migrate.sh'
|
||||
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 }}'
|
||||
|
Loading…
Reference in New Issue
Block a user