Skip to content

Commit

Permalink
ci: fix docker image (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdrosas87 authored and alexgoff committed Jul 25, 2024
1 parent 32705bf commit d381ce3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main-release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build Container Image
run: |-
docker build \
-t "gcr.io/edc-prod-eef0/rubin-obs-client:${{ env.version_name }}" \
-t "gcr.io/edc-prod-eef0/investigations-client:${{ env.version_name }}" \
--build-arg NEXT_PUBLIC_API_URL=https://api-investigations.rubinobs.org/api \
--build-arg NEXT_PUBLIC_BASE_URL=https://investigations.rubinobservatory.org \
--build-arg NEXT_PUBLIC_GOOGLE_APP_ID=596747551410-e6v1s01riph83i8003impi1fhgomlag5.apps.googleusercontent.com \
Expand All @@ -43,15 +43,15 @@ jobs:
run: gcloud --quiet auth configure-docker

- name: Push Container Image to GCR
run: docker push gcr.io/edc-prod-eef0/rubin-obs-client:${{ env.version_name }}
run: docker push gcr.io/edc-prod-eef0/investigations-client:${{ env.version_name }}

- name: Get app.yaml
run: gcloud secrets versions access latest --secret=investigations-client-appyaml > app.yaml

- name: Deploy to App Engine
run: |-
gcloud app deploy app.yaml \
--image-url=gcr.io/edc-prod-eef0/rubin-obs-client:${{ env.version_name }} \
--image-url=gcr.io/edc-prod-eef0/investigations-client:${{ env.version_name }} \
--version=${{ env.version_name }} \
--promote \
--project=edc-prod-eef0
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ COPY . /app
RUN apk add --no-cache libc6-compat git fontconfig
RUN yarn install --frozen-lockfile

ARG NEXT_PUBLIC_API_URL=https://investigations-api-dot-skyviewer.uw.r.appspot.com/api
ARG NEXT_PUBLIC_BASE_URL=https://investigations-client-dot-skyviewer.uw.r.appspot.com
ARG NEXT_PUBLIC_GOOGLE_APP_ID=688095955960-sc5krqd8e3tpu2i692mic0kj2nckptu1.apps.googleusercontent.com
ARG GOOGLE_APP_SECRET=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
ARG CRAFT_SECRET_TOKEN=1128f3c472c118caa63
ARG CRAFT_EDUCATOR_SCHEMA_SECRET_TOKEN=KPYySxz0TZjIPAtNCdnYUkguZz6y6BU-
ARG CRAFT_STUDENT_SCHEMA_SECRET_TOKEN=vPNHdjzu4XwKhiYC0jDrQENzGxb2Ltx3
ARG NEXT_PUBLIC_API_URL
ARG NEXT_PUBLIC_BASE_URL
ARG NEXT_PUBLIC_GOOGLE_APP_ID
ARG GOOGLE_APP_SECRET
ARG CRAFT_SECRET_TOKEN
ARG CRAFT_EDUCATOR_SCHEMA_SECRET_TOKEN
ARG CRAFT_STUDENT_SCHEMA_SECRET_TOKEN

RUN npx browserslist@latest --update-db && yarn static:build

Expand Down

0 comments on commit d381ce3

Please sign in to comment.