Skip to content

Commit

Permalink
[GitHub Actions] Restore staging.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rikurauhala committed Aug 20, 2024
1 parent b53b454 commit 9c3db72
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- oodikone-shared-2
paths:
- '.github/workflows/test.yaml'
- '.github/workflows/staging.yaml'
Expand Down Expand Up @@ -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/slackbot-action@v1.5
# 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/slackbot-action@v1.5
# 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/slackbot-action@v1.5
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/slackbot-action@v1.5
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
message-type: deployment-failure
deployment-target: staging

0 comments on commit 9c3db72

Please sign in to comment.