File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -150,22 +150,22 @@ jobs:
150150 env :
151151 COMMIT_SHA : ${{ github.sha }}
152152 run : |
153- set -euo pipefail
154-
155- SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-7)"
156- TIMESTAMP="$(date +%Y%m%d-%H%M%S)"
157- REGISTRY="${{ steps.login-ecr.outputs.registry }}"
158- PREFIX="${{ env.ECR_REGISTRY_PREFIX }}-${{ matrix.service }}"
159-
160- TAGS="${REGISTRY}/${PREFIX}:${SHORT_SHA},${REGISTRY}/${PREFIX}:latest,${REGISTRY}/${PREFIX}:${TIMESTAMP}"
161-
162- echo "REGISTRY=${REGISTRY}"
163- echo "PREFIX=${PREFIX}"
164- echo "TAGS=${TAGS}"
165-
166- yarn nx container "${{ matrix.service }}" \
167- --tags="${TAGS}" \
168- --push="${{ github.event_name != 'pull_request' }}"
153+ set -euo pipefail
154+
155+ SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-7)"
156+ TIMESTAMP="$(date +%Y%m%d-%H%M%S)"
157+ REGISTRY="${{ steps.login-ecr.outputs.registry }}"
158+ PREFIX="${{ env.ECR_REGISTRY_PREFIX }}-${{ matrix.service }}"
159+
160+ TAGS="${REGISTRY}/${PREFIX}:${SHORT_SHA},${REGISTRY}/${PREFIX}:latest,${REGISTRY}/${PREFIX}:${TIMESTAMP}"
161+
162+ echo "REGISTRY=${REGISTRY}"
163+ echo "PREFIX=${PREFIX}"
164+ echo "TAGS=${TAGS}"
165+
166+ yarn nx container "${{ matrix.service }}" \
167+ --tags="${TAGS}" \
168+ --push="${{ github.event_name != 'pull_request' }}"
169169
170170 - name : Scan image for vulnerabilities
171171 if : github.event_name != 'pull_request'
You can’t perform that action at this time.
0 commit comments