roschaefer 7ec4d88676 Random try to fix strange error
Backend and Neo4j base images are built fine but Github fails to build
`humanconnection/webapp` docker image. Is a request made to dockerhub to
see if the repository exists? Even if the resulting image is not being
pushed to dockerhub?

What really bugs me is that `humanconnection/backend` does not exist
anymore and yet the Github actions runs fine building that image.
2020-06-08 14:27:55 +02:00

66 lines
1.9 KiB
YAML

name: CD
on:
push:
branches: [ master ]
jobs:
build:
name: Build and push docker images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build neo4j base image
uses: docker/build-push-action@v1.1.0
with:
repository: humanconnection/neo4j
tags: latest
path: Human-Connection/neo4j/
push: false
- name: Build backend base image
uses: docker/build-push-action@v1.1.0
with:
repository: humanconnection/backend
tags: latest
path: Human-Connection/backend/
push: false
- name: Build webapp base image
uses: docker/build-push-action@v1.1.0
with:
repository: humanconnection/nitro-web
tags: latest
path: Human-Connection/webapp/
push: false
- name: Build neo4j customized image
uses: docker/build-push-action@v1.1.0
with:
repository: schoolsinmotion/neo4j
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: latest
path: neo4j/
push: true
- name: Build backend customized image
uses: docker/build-push-action@v1.1.0
with:
repository: schoolsinmotion/backend
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: latest
path: backend/
push: true
- name: Build webapp customized image
uses: docker/build-push-action@v1.1.0
with:
repository: schoolsinmotion/webapp
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: latest
path: webapp/
push: true