Skip to content

Commit

Permalink
Get image tag from deploy_app task inputs (ONSdigital#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd authored Aug 6, 2021
1 parent 42c47f6 commit 491a57b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit 491a57b

Please sign in to comment.