-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (35 loc) · 1.05 KB
/
build_docker_crow.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
name: Build docker images
on:
push:
branches:
- master
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'crow/**'
jobs:
build-crow-dockerrmi:
name: Build docker stack for CROW
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # checkout latest version of the repo
#with:
# submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update && docker --version
- name: Build backend image
run: |
sudo bash build_docker_crow.sh
- name: Push images CROW
run: |
docker login -u="$user" -p="$pass" && docker push slumps/crow2:latest
env:
user: ${{secrets.DOCKER_USER}}
pass: ${{secrets.DOCKER_PASS}}
- name: Push images CROW
run: |
docker login -u="$user" -p="$pass" && docker push slumps/crow2:standalone
env:
user: ${{secrets.DOCKER_USER}}
pass: ${{secrets.DOCKER_PASS}}