Configure Github actions to build base images
This commit is contained in:
parent
178e8fe1bb
commit
0a6c222a95
40
.github/workflows/cd.yml
vendored
40
.github/workflows/cd.yml
vendored
@ -13,29 +13,53 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Rebrand
|
|
||||||
run: cp -r webapp/* fyphe_O/webapp/
|
- name: Build neo4j base image
|
||||||
- name: Build neo4j
|
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/webapp
|
||||||
|
tags: latest
|
||||||
|
path: Human-Connection/webapp/
|
||||||
|
push: false
|
||||||
|
|
||||||
|
- name: Build neo4j customized image
|
||||||
uses: docker/build-push-action@v1.1.0
|
uses: docker/build-push-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
repository: schoolsinmotion/neo4j
|
repository: schoolsinmotion/neo4j
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
tags: latest
|
tags: latest
|
||||||
path: fyphe_O/neo4j/
|
path: neo4j/
|
||||||
- name: Build backend
|
push: true
|
||||||
|
- name: Build backend customized image
|
||||||
uses: docker/build-push-action@v1.1.0
|
uses: docker/build-push-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
repository: schoolsinmotion/backend
|
repository: schoolsinmotion/backend
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
tags: latest
|
tags: latest
|
||||||
path: fyphe_O/backend/
|
path: backend/
|
||||||
- name: Build webapp
|
push: true
|
||||||
|
- name: Build webapp customized image
|
||||||
uses: docker/build-push-action@v1.1.0
|
uses: docker/build-push-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
repository: schoolsinmotion/webapp
|
repository: schoolsinmotion/webapp
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
tags: latest
|
tags: latest
|
||||||
path: fyphe_O/webapp/
|
path: webapp/
|
||||||
|
push: true
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "Human-Connection"]
|
||||||
|
path = Human-Connection
|
||||||
|
url = https://github.com/The-Schools-in-Motion-Network/fyphe_O.git
|
||||||
1
Human-Connection
Submodule
1
Human-Connection
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 73c1f3c88bd13ecfd520b76bb396e4ec460f9d79
|
||||||
@ -3,8 +3,6 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
webapp:
|
webapp:
|
||||||
image: schoolsinmotion/webapp:latest
|
image: schoolsinmotion/webapp:latest
|
||||||
build:
|
|
||||||
context: webapp
|
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
- 3002:3002
|
- 3002:3002
|
||||||
@ -12,8 +10,6 @@ services:
|
|||||||
- hc-network
|
- hc-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
volumes:
|
|
||||||
- webapp_node_modules:/webapp/node_modules
|
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
@ -22,17 +18,12 @@ services:
|
|||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
backend:
|
backend:
|
||||||
image: schoolsinmotion/backend:latest
|
image: schoolsinmotion/backend:latest
|
||||||
build:
|
|
||||||
context: backend
|
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- neo4j
|
- neo4j
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
volumes:
|
|
||||||
- backend_node_modules:/backend/node_modules
|
|
||||||
- uploads:/backend/public/uploads
|
|
||||||
environment:
|
environment:
|
||||||
- NEO4J_URI=bolt://neo4j:7687
|
- NEO4J_URI=bolt://neo4j:7687
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
@ -47,8 +38,6 @@ services:
|
|||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
neo4j:
|
neo4j:
|
||||||
image: schoolsinmotion/neo4j:latest
|
image: schoolsinmotion/neo4j:latest
|
||||||
build:
|
|
||||||
context: neo4j
|
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
environment:
|
environment:
|
||||||
@ -58,12 +47,5 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 7687:7687
|
- 7687:7687
|
||||||
- 7474:7474
|
- 7474:7474
|
||||||
volumes:
|
|
||||||
- neo4j_data:/data
|
|
||||||
networks:
|
networks:
|
||||||
hc-network:
|
hc-network:
|
||||||
volumes:
|
|
||||||
webapp_node_modules:
|
|
||||||
backend_node_modules:
|
|
||||||
neo4j_data:
|
|
||||||
uploads:
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user