mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Harden shell quoting in CI pipeline definitions (#33789)
GitOrigin-RevId: a21c02f632b1e357ba18a86378d796a0d93fa484
This commit is contained in:
@@ -10,9 +10,9 @@ steps:
|
|||||||
script: |
|
script: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
if [ ${BRANCH_NAME} == main ]; then
|
if [ "${BRANCH_NAME}" = "main" ]; then
|
||||||
docker tag ${_IMAGE_BASE} ${_IMAGE_BASE_LATEST};
|
docker tag "${_IMAGE_BASE}" "${_IMAGE_BASE_LATEST}";
|
||||||
docker push ${_IMAGE_BASE_LATEST};
|
docker push "${_IMAGE_BASE_LATEST}";
|
||||||
fi
|
fi
|
||||||
automapSubstitutions: true
|
automapSubstitutions: true
|
||||||
- id: prefetch_ce
|
- id: prefetch_ce
|
||||||
@@ -39,9 +39,9 @@ steps:
|
|||||||
script: |
|
script: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
if [ $BRANCH_NAME == main ]; then
|
if [ "${BRANCH_NAME}" = "main" ]; then
|
||||||
docker tag ${_IMAGE_TAG} ${_IMAGE_TAG_LATEST};
|
docker tag "${_IMAGE_TAG}" "${_IMAGE_TAG_LATEST}";
|
||||||
docker push ${_IMAGE_TAG_LATEST};
|
docker push "${_IMAGE_TAG_LATEST}";
|
||||||
fi
|
fi
|
||||||
automapSubstitutions: true
|
automapSubstitutions: true
|
||||||
waitFor:
|
waitFor:
|
||||||
|
|||||||
Reference in New Issue
Block a user