Skip to content

Commit

Permalink
Rename workflows and add deployment steps
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Oct 3, 2024
1 parent 38588a5 commit 7ac7a94
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-migrations.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main migrations
name: Deploy production

on:
pull_request:
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/staging-migrations.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Staging migrations
name: Deploy staging

on:
pull_request:
Expand Down Expand Up @@ -43,3 +43,23 @@ jobs:
DATO_API_KEY_OPENEARTH_DATA_VIEWER: ${{ secrets.DATO_API_KEY_OPENEARTH_DATA_VIEWER }}
DATO_API_KEY_NL2120: ${{ secrets.DATO_API_KEY_NL2120 }}
run: npm run migrations:apply-staging

prepare-deployments:
needs: apply-staging-migrations
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set matrix data
id: set-matrix
run: node -e 'console.log(JSON.stringify(require("./config/dato/instances.js").instances))' >> $GITHUB_OUTPUT

deploy-application:
needs: prepare-deployments
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.prepare-deployments.outputs.matrix) }}
steps:
- name: Print
run: echo ${{ matrix.name }}

0 comments on commit 7ac7a94

Please sign in to comment.