mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
60 lines
1.9 KiB
YAML
60 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 image
|
|
uses: docker/build-push-action@v1.1.0
|
|
with:
|
|
repository: ocelotsocialnetwork/develop-neo4j
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: latest
|
|
path: Ocelot-Social/neo4j/
|
|
- name: Build backend base image
|
|
uses: docker/build-push-action@v1.1.0
|
|
with:
|
|
repository: ocelotsocialnetwork/develop-backend
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: build-and-test
|
|
target: build-and-test
|
|
path: Ocelot-Social/backend/
|
|
- name: Build webapp base image
|
|
uses: docker/build-push-action@v1.1.0
|
|
with:
|
|
repository: ocelotsocialnetwork/develop-webapp
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: build-and-test
|
|
target: build-and-test
|
|
path: Ocelot-Social/webapp/
|
|
|
|
- name: Build backend customized image
|
|
uses: docker/build-push-action@v1.1.0
|
|
with:
|
|
repository: ocelotsocialnetwork/develop-backend
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: latest
|
|
path: backend/
|
|
- name: Build webapp customized image
|
|
uses: docker/build-push-action@v1.1.0
|
|
with:
|
|
repository: ocelotsocialnetwork/develop-webapp
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: latest
|
|
path: webapp/
|