Skip to content

Commit

Permalink
VA-407-3: Tag deployed commit with an environment/timestamp so we'll …
Browse files Browse the repository at this point in the history
…know when it was deployed
  • Loading branch information
anttu committed Dec 29, 2023
1 parent 768c4c1 commit 97609c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ jobs:
id: deploy
run: ./deploy-scripts/04-deploy-cdk-${{ inputs.env }}.sh

- name: set now timestamp
id: now
run: echo "timestamp=$(date -Iseconds)" >> $GITHUB_OUTPUT

- name: Update green tag
if: steps.deploy.outcome == 'success'
run: |
git config user.name github-actions
git config user.email [email protected]
git tag --force va-green-${{ inputs.env }}
git push --force origin va-green-${{ inputs.env }}
git tag va-green-${{ inputs.env }}/${{ steps.now.outputs.timestamp }}
git push origin va-green-${{ inputs.env }}/${{ steps.now.outputs.timestamp }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 97609c7

Please sign in to comment.