Skip to content

Commit

Permalink
Deploy using public-infra update_flakes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Aug 23, 2023
1 parent e486c6c commit 0e26207
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ jobs:
- name: E2E test Mailgun
run: cd tests/e2e/ && TEST_MAILER=mailgun ./main.js

- name: Deploy staging
if: github.repository == 'portier/portier-broker' && github.ref == 'refs/heads/main'
run: |
curl -X POST \
-H 'Authorization: token ${{ secrets.BOT_GITHUB_TOKEN }}' \
-H 'Accept: application/vnd.github.v3+json' \
https://api.github.com/repos/portier/public-infra/actions/workflows/update_testing_broker.yml/dispatches \
-d '{ "ref": "main" }'
macos-build:
runs-on: macos-latest
steps:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy

on:
push:
branches: [main, stable]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
if: github.repository == 'portier/portier-broker'
run: |
curl -X POST \
-H 'Authorization: token ${{ secrets.BOT_GITHUB_TOKEN }}' \
-H 'Accept: application/vnd.github.v3+json' \
https://api.github.com/repos/portier/public-infra/actions/workflows/update_flakes.yml/dispatches \
-d '{ "ref": "main" }'

0 comments on commit 0e26207

Please sign in to comment.