File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,5 +35,5 @@ RUN chmod +x /app/runners/setup.sh
3535ENTRYPOINT ["/app/runners/setup.sh" ]
3636
3737# Optional .env copy for development
38- FROM base AS dev
38+ FROM base AS local
3939COPY .env /app/.env
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ Docker is used for automated running on Google Cloud Platform. More info [here](
9898
9999To build the container for local testing first make sure all scripts in the ` runners ` folder have LF line endings then run:
100100```
101- docker build --target dev -t my-runner:local .
102- docker run --rm -e ENVIRONMENT=dev -e RUNNER_SCRIPT_NAME=daily.sh my-runner:local
101+ docker build --target local -t my-runner:local .
102+ docker run --rm -e ENVIRONMENT=local -e RUNNER_SCRIPT_NAME=daily.sh my-runner:local
103103```
104104
105105## Questions?
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- if [ " $ENVIRONMENT " = " prod " ]; then
3+ if [ " $ENVIRONMENT " = " gcp " ]; then
44 # auth with service account
55 gcloud secrets versions access latest --secret=" $SERVICE_ACCOUNT_SECRET_NAME " > service_account.json
66 gcloud auth activate-service-account --key-file=service_account.json
You can’t perform that action at this time.
0 commit comments