From 7b03942afc790aceea970990f06ed5a18d5f123e Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Wed, 30 Dec 2020 11:08:23 +0100 Subject: [PATCH 1/2] typo --- src/datasources/db/participantAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasources/db/participantAPI.ts b/src/datasources/db/participantAPI.ts index bd16bcf..08b3862 100644 --- a/src/datasources/db/participantAPI.ts +++ b/src/datasources/db/participantAPI.ts @@ -315,7 +315,7 @@ export class ParticipantAPI extends DataSource { throw new UserInputError('Participant ist not active in the specified dateRange'); } } else if (engagement.dateRange || engagement.dateRange) { - throw new UserInputError('Please specify participantId adn the dateRange'); + throw new UserInputError('Please specify participantId and the dateRange'); } await entityManager.getRepository(Engagement) .createQueryBuilder('engagement') From 2450d474384aed476cd6ee4b0d378f27a2d78768 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Wed, 30 Dec 2020 11:20:01 +0100 Subject: [PATCH 2/2] actions: tag and multi arch build --- .github/workflows/docker.yml | 9 ++++++--- .github/workflows/node.js.yml | 6 +----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6c3670c..ee1b772 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,7 +3,7 @@ name: Build Docker Image on: push: - branches: [ main, dev ] + branches: [ main ] workflow_dispatch: jobs: @@ -14,6 +14,9 @@ jobs: - name: Copy Repo Files uses: actions/checkout@v2 + - id: sha + run: echo "::set-output name=sha::$(git describe --always --tags --dirty)" + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -32,6 +35,6 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64 + platforms: linux/arm64, linux/arm, linux/amd64 push: true - tags: flotte-docker-registry.spdns.org/apollo-server:latest + tags: flotte-docker-registry.spdns.org/apollo-server:latest, flotte-docker-registry.spdns.org/apollo-server:${{ steps.sha.outputs.sha }} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 8cf4409..31de5ba 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,11 +3,7 @@ name: Node.js CI -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push, pull_request] jobs: build: