Skip to content

Commit 8938b3b

Browse files
committed
Try to get Scaleway staging deploy running...
1 parent 9622de0 commit 8938b3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ jobs:
135135
labels: ${{ steps.meta.outputs.labels }}
136136

137137
publish-scaleway:
138-
name: Deploy to Scaleway ${{ vars.GHA_DEPLOY_ENV_NAME }}
139-
if: github.event_name == 'push' && vars.GHA_DEPLOY_ENV_NAME
140-
environment: production
138+
name: Deploy to Scaleway ${{ vars.GHA_DEPLOY_ENV_NAME || '(skipped)' }}
139+
if: github.event_name == 'push' && vars.GHA_DEPLOY_ENV_NAME != ''
140+
environment: |
141+
${{ github.ref == 'refs/heads/main' && 'production' || github.ref == 'refs/heads/next' && 'staging' || '' }}
141142
runs-on: ubuntu-latest
142143
needs: publish-docker
143144
steps:

0 commit comments

Comments
 (0)