Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: trigger staging deployment using actions (#1523)
Browse files Browse the repository at this point in the history
* fix: trigger staging deployment using actions
  • Loading branch information
razvan-pro authored May 17, 2021
1 parent 05b3581 commit 8baf2c4
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,19 @@ jobs:
echo ${{ steps.game.outputs.digest }}
echo ${{ steps.game_creator.outputs.digest }}
notify-semaphore:
name: Notify Semaphore
trigger-staging-deployment:
name: Trigger staging deployment
needs: [publish-docker-images]
runs-on: ubuntu-18.04
steps:
- name: Notify Semaphore (Staging)
run: curl -d POST https://semaphoreci.com/api/v1/projects/${SEMAPHORE_PROJECT_ID}/master/build?auth_token=${SEMAPHORE_API_AUTH}
env:
SEMAPHORE_PROJECT_ID: ${{ secrets.SEMAPHORE_PROJECT_ID }}
SEMAPHORE_API_AUTH: ${{ secrets.SEMAPHORE_API_AUTH }}
- name: Trigger staging deployment
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
script: |
github.actions.createWorkflowDispatch({
owner: 'ocadotechnology',
repo: 'codeforlife-deploy-appengine',
workflow_id: 'deploy_staging.yml',
ref: 'master',
});

0 comments on commit 8baf2c4

Please sign in to comment.