From 36afad0a673aba62dea9d4baa40374e62b84a62a Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 19 Jan 2021 23:28:10 +0100 Subject: [PATCH] -fix CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18b01a1d9..a4334e29e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,25 +22,43 @@ jobs: tags: latest path: neo4j/ push: false - - name: Build backend base image + # TODO: We want to push this to dockerhub + #- name: Build backend production image + # uses: docker/build-push-action@v1.1.0 + # with: + # repository: ocelotsocialnetwork/backend + # tags: production + # target: production + # path: backend/ + # push: false + - name: Build backend development image uses: docker/build-push-action@v1.1.0 with: repository: ocelotsocialnetwork/backend - tags: build-and-test - target: build-and-test + tags: development + target: development path: backend/ push: false - - name: Build webapp base image + # TODO: We want to push this to dockerhub + #- name: Build webapp production image + # uses: docker/build-push-action@v1.1.0 + # with: + # repository: ocelotsocialnetwork/webapp + # tags: production + # target: production + # path: webapp/ + # push: false + - name: Build webapp development image uses: docker/build-push-action@v1.1.0 with: repository: ocelotsocialnetwork/webapp - tags: build-and-test - target: build-and-test + tags: development + target: development path: webapp/ push: false - name: Lint backend - run: docker run --rm ocelotsocialnetwork/backend:build-and-test yarn run lint + run: docker run --rm ocelotsocialnetwork/backend:development yarn run lint - name: Lint webapp - run: docker run --rm ocelotsocialnetwork/webapp:build-and-test yarn run lint + run: docker run --rm ocelotsocialnetwork/webapp:development yarn run lint