-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GitHub Actions] Restore staging.yaml
- Loading branch information
1 parent
b53b454
commit 9c3db72
Showing
1 changed file
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- oodikone-shared-2 | ||
paths: | ||
- '.github/workflows/test.yaml' | ||
- '.github/workflows/staging.yaml' | ||
|
@@ -89,39 +88,40 @@ jobs: | |
registry: quay.io/toska | ||
username: toska+github | ||
password: ${{ secrets.QUAY_IO_TOKEN }} | ||
# report_success: | ||
# name: 'Report deployment success to oodikone notifications' | ||
# runs-on: ubuntu-latest | ||
# needs: | ||
# - release_frontend | ||
# - release_backend | ||
# | ||
# if: success() | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: 'Send notification to slack' | ||
# uses: UniversityOfHelsinkiCS/[email protected] | ||
# with: | ||
# webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
# message-type: deployment | ||
# softa-url: https://toska-staging.cs.helsinki.fi/oodikone | ||
# deployment-target: staging | ||
# | ||
# report_failure: | ||
# name: 'Report deployment failure to oodikone notifications' | ||
# runs-on: ubuntu-latest | ||
# needs: | ||
# - release_frontend | ||
# - release_backend | ||
# | ||
# if: failure() | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: 'Send notification to slack' | ||
# uses: UniversityOfHelsinkiCS/[email protected] | ||
# with: | ||
# webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
# message-type: deployment-failure | ||
# deployment-target: staging | ||
|
||
report_success: | ||
name: 'Report deployment success to oodikone notifications' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- release_frontend | ||
- release_backend | ||
|
||
if: success() | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Send notification to slack' | ||
uses: UniversityOfHelsinkiCS/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
message-type: deployment | ||
softa-url: https://toska-staging.cs.helsinki.fi/oodikone | ||
deployment-target: staging | ||
|
||
report_failure: | ||
name: 'Report deployment failure to oodikone notifications' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- release_frontend | ||
- release_backend | ||
|
||
if: failure() | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Send notification to slack' | ||
uses: UniversityOfHelsinkiCS/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
message-type: deployment-failure | ||
deployment-target: staging |