-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (59 loc) · 2.44 KB
/
cd_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This file wont do us much good in this location, make sure you change the path as directed to continue!
name: Docker CD
on: [pull_request]
jobs:
Build-and-Push-Docker-Image:
runs-on: ubuntu-18.04
if: contains(github.event.pull_request.labels.*.name, 'deploy')
steps:
- uses: actions/checkout@master
- name: Publish Frontend to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: detiuaveiro/social-network-mining/web-app
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
dockerfile: code/backend/twitter/docker/frontend/Dockerfile
context: code/web-app
tags: "latest"
- name: Publish Bots to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: detiuaveiro/social-network-mining/bot
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
dockerfile: code/backend/twitter/docker/bots/Dockerfile
context: code/backend/twitter
tags: "latest"
- name: Publish Follow Service to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: detiuaveiro/social-network-mining/follow_service
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
dockerfile: code/backend/twitter/docker/follow_service/Dockerfile
context: code/backend/twitter
tags: "latest"
- name: Publish Control Center to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: detiuaveiro/social-network-mining/control_center
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
dockerfile: code/backend/twitter/docker/control_center/Dockerfile
context: code/backend/twitter
tags: "latest"
- name: Publish Rest to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: detiuaveiro/social-network-mining/rest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
dockerfile: code/backend/twitter/docker/rest/Dockerfile
context: code/backend/twitter
tags: "latest"