Skip to content

Commit 533265e

Browse files
Adding artifactsOnly mode and fixing Docker image build (#8888)
* Adding artifactsOnly mode and fixing Docker image build * Update scripts/publish/run.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update scripts/publish/run.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * typo --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent f1c2d21 commit 533265e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

scripts/publish.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ printusage() {
77
echo "e.g. REPOSITORY_ORG=user, REPOSITORY_NAME=repo"
88
echo ""
99
echo "Arguments:"
10-
echo " version: 'patch', 'minor', or 'major'."
10+
echo " version: 'patch', 'minor', 'major', or 'artifactsOnly'"
1111
}
1212

1313
VERSION=$1
1414
if [[ $VERSION == "" ]]; then
1515
printusage
1616
exit 1
17+
elif [[ $VERSION == "artifactsOnly" ]]; then
18+
echo "Skipping npm package publish since VERSION is artifactsOnly."
19+
exit 0
1720
elif [[ ! ($VERSION == "patch" || $VERSION == "minor" || $VERSION == "major") ]]; then
1821
printusage
1922
exit 1

scripts/publish/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ steps:
128128
entrypoint: "sh"
129129
args:
130130
- "-c"
131-
- "docker build -t us-docker.pkg.dev/${_ARTIFACT_REGISTRY_PROJECT}/us/firebase:$(cat /workspace/version_number.txt) -t us-docker.pkg.dev/${_ARTIFACT_REGISTRY_PROJECT}/us/firebase:latest -f ./firebase-docker-image/Dockerfile ."
131+
- "docker build -t us-docker.pkg.dev/${_ARTIFACT_REGISTRY_PROJECT}/us/firebase:$(cat /workspace/version_number.txt) -t us-docker.pkg.dev/${_ARTIFACT_REGISTRY_PROJECT}/us/firebase:latest -f ./firebase-docker-image/Dockerfile ./firebase-docker-image"
132132

133133
images:
134134
- "us-docker.pkg.dev/${_ARTIFACT_REGISTRY_PROJECT}/us/firebase"

scripts/publish/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
set -e
33

44
printusage() {
5-
echo "run.sh <version> <vscode_version>"
5+
echo "run.sh <version>"
66
echo ""
77
echo "Arguments:"
8-
echo " version: 'patch', 'minor', or 'major'."
8+
echo " version: 'patch', 'minor', 'major', or 'artifactsOnly'"
99
}
1010

1111
VERSION=$1
1212
if [[ $VERSION == "" ]]; then
1313
printusage
1414
exit 1
15-
elif [[ ! ($VERSION == "patch" || $VERSION == "minor" || $VERSION == "major") ]]; then
15+
elif [[ ! ($VERSION == "patch" || $VERSION == "minor" || $VERSION == "major" || $VERSION == "artifactsOnly") ]]; then
1616
printusage
1717
exit 1
1818
fi

0 commit comments

Comments
 (0)