Skip to content

Commit 771bcd8

Browse files
committed
Change environment name for use on GCP from "prod" to "gcp"
1 parent bbb7d75 commit 771bcd8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ RUN chmod +x /app/runners/setup.sh
3535
ENTRYPOINT ["/app/runners/setup.sh"]
3636

3737
# Optional .env copy for development
38-
FROM base AS dev
38+
FROM base AS local
3939
COPY .env /app/.env

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Docker is used for automated running on Google Cloud Platform. More info [here](
9898

9999
To 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?

runners/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)