diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ed3cfcb..2543a2c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,4 +1,4 @@ -name: Continuous deployment +name: CD on: push: @@ -6,14 +6,28 @@ on: jobs: build: - name: Build and push docker image + name: Build and push docker images runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: submodules: recursive - - name: Build and push Docker images + - name: Build neo4j uses: docker/build-push-action@v1.1.0 with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} path: fyphe_O/neo4j/ + - name: Build backend + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + path: fyphe_O/backend/ + - name: Build webapp + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + path: fyphe_O/webapp/