Skip to content

Commit

Permalink
Send status to radiator as last step
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbrt committed Jan 10, 2025
1 parent b19126e commit a40ae3d
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/_deploy-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ jobs:
COMMIT_HASH: ${{ github.sha }}
run: ./scripts/slack/post-github-deploy-status-to-slack.sh

- name: Send deploy status to radiator
if: always()
continue-on-error: true
env:
DEPLOY_STATUS: ${{ steps.deploy.outcome == 'success' && 'success' || 'failure' }}
run: |
curl \
-H "AUTH_TOKEN: ${{ secrets.RADIATOR_AUTH_TOKEN }}" \
-H "Content-Type: application/json" \
-X PUT \
https://radiator.continuous-services.services/api/v2/buildstatus/valtionavustus/valtionavustus-deploy-${{ inputs.env }} \
-d "{\"status\": \"${DEPLOY_STATUS}\"}"
- name: set now timestamp
id: now
run: echo "timestamp=$(date -Iseconds | sed s/:/_/g )" >> $GITHUB_OUTPUT
Expand All @@ -98,3 +85,15 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Send deploy status to radiator
if: always()
continue-on-error: true
env:
DEPLOY_STATUS: ${{ steps.deploy.outcome == 'success' && 'success' || 'failure' }}
run: |
curl \
-H "AUTH_TOKEN: ${{ secrets.RADIATOR_AUTH_TOKEN }}" \
-H "Content-Type: application/json" \
-X PUT \
https://radiator.continuous-services.services/api/v2/buildstatus/valtionavustus/valtionavustus-deploy-${{ inputs.env }} \
-d "{\"status\": \"${DEPLOY_STATUS}\"}"

0 comments on commit a40ae3d

Please sign in to comment.