|
28 | 28 | outputs:
|
29 | 29 | image-name: ${{ steps.vars.outputs.image_name }}
|
30 | 30 | sha-short: ${{ steps.vars.outputs.sha_short }}
|
| 31 | + built-at: ${{ steps.vars.outputs.built_at }} |
31 | 32 | steps:
|
32 | 33 | - name: Checkout repository
|
33 | 34 | uses: actions/checkout@v4
|
|
41 | 42 | echo "image_name=$image_name" >> $GITHUB_OUTPUT
|
42 | 43 | sha_short=$(echo "$(git rev-parse --short HEAD)" | tr '[:upper:]' '[:lower:]')
|
43 | 44 | echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
|
| 45 | + echo "built_at=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT |
44 | 46 |
|
45 | 47 | # Login against a Docker registry except on PR
|
46 | 48 | # https://github.com/docker/login-action
|
|
79 | 81 | build-args: |
|
80 | 82 | VITE_BRANCH_NAME=${{ inputs.branchName }}
|
81 | 83 | VITE_GIT_SHA=${{ steps.vars.outputs.sha_short }}
|
| 84 | + VITE_BUILT_AT=${{ steps.vars.outputs.built_at }} |
82 | 85 |
|
83 | 86 | deploy:
|
84 | 87 | runs-on: ubuntu-latest
|
@@ -109,6 +112,7 @@ jobs:
|
109 | 112 | with:
|
110 | 113 | inlineScript: |
|
111 | 114 | RESOURCE_GROUP="${{ env.RESOURCE_GROUP }}"
|
| 115 | + BUILT_AT="${{ needs.build.outputs.built-at }}" |
112 | 116 | BRANCH_NAME="${{ inputs.branchName }}"
|
113 | 117 | SHA_SHORT="${{ needs.build.outputs.sha-short }}"
|
114 | 118 | REF_SHA="${{ inputs.branchName }}.${{ needs.build.outputs.sha-short }}"
|
@@ -137,6 +141,7 @@ jobs:
|
137 | 141 | containerRegistryPassword=${{ secrets.PACKAGES_TOKEN }} \
|
138 | 142 | branchName="$BRANCH_NAME" \
|
139 | 143 | gitSha="$SHA_SHORT" \
|
| 144 | + builtAt="$BUILT_AT" \ |
140 | 145 | workspaceName='shared-log-analytics' \
|
141 | 146 | appInsightsName='shared-app-insights' \
|
142 | 147 | managedEnvironmentName='shared-env' \
|
|
0 commit comments