Skip to content

Commit 11409dc

Browse files
committed
fix(ci): correct YAML indentation in build step
- Fix indentation of run block content - Ensure proper YAML syntax for multiline script - Validated with YAML parser
1 parent adfd84d commit 11409dc

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/build-push-images.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)