Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Build Docker on release branches (#4174)
Browse files Browse the repository at this point in the history
* feat: infra improvements

* feat: add download step to github action

* feat: add docker build step

* fix: use correct yml syntax

* fix: remove context from actions yml

* feat: only run on release branch

Co-authored-by: VWSCoronaDashboard24 <[email protected]>
  • Loading branch information
VWSCoronaDashboard24 and VWSCoronaDashboard24 authored Apr 12, 2022
1 parent 989fa1f commit ecbe053
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,25 @@ jobs:

- name: Run tests
run: yarn test:ci

docker:
runs-on: ubuntu-latest
needs: init
if: contains(github.head_ref, 'release')
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build
uses: docker/build-push-action@v2
with:
build-args: |
"ARG_NEXT_PUBLIC_SANITY_PROJECT_ID=5mog5ask"
"SANITY_API_TOKEN=<sanity_token>"
"ARG_NEXT_PUBLIC_SANITY_DATASET=production"
"ARG_NEXT_PUBLIC_COMMIT_ID=local-test-random-string"
"ARG_API_URL=https://coronadashboard.rijksoverheid.nl/json/latest-data.zip"
push: false
2 changes: 1 addition & 1 deletion packages/app/src/utils/replace-components-in-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function replaceComponentsInText(
if (isVariable && shouldValidate) {
assert(
replacementMap[part],
`[${replaceComponentsInText.name}] Replacement text or component ${part} is not provided.`
`[${replaceComponentsInText.name}] Replacement text or component ${part} is not provided in text: "${text}".`
);
}

Expand Down

0 comments on commit ecbe053

Please sign in to comment.