Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get image tag from deploy_app task inputs #32

Merged
merged 2 commits into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ To deploy this application with Concourse, you must be logged in to a Concourse
---

Make sure the required [environment variables](../README.md#environment-variables) are set.
IMAGE_TAG can be passed as an environment variable or as a file input located at `./image-tag/tag`.

To deploy the app via Concourse, use the following task command:

Expand Down
7 changes: 6 additions & 1 deletion ci/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ params:
MAX_INSTANCES:
inputs:
- name: eq-questionnaire-launcher
- name: image-tag
optional: true
run:
path: bash
args:
Expand All @@ -26,6 +28,9 @@ run:
EOL

gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS

FILE=./image-tag/tag
if [[ -f "${FILE}" ]]; then
export IMAGE_TAG=`cat "$FILE"`
fi
cd eq-questionnaire-launcher
./ci/deploy_app.sh