From 97609c7585e3e81a652aaa277d0deba1adff9fd8 Mon Sep 17 00:00:00 2001 From: Antero Fagerstedt Date: Fri, 29 Dec 2023 15:42:30 +0200 Subject: [PATCH] VA-407-3: Tag deployed commit with an environment/timestamp so we'll know when it was deployed --- .github/workflows/deploy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9cbfa6f006..6144b6ed10 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -36,6 +36,10 @@ 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: | @@ -43,5 +47,7 @@ jobs: git config user.email github-actions@github.com 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 }}