generated from IllumiDesk/docker-stacks
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.09 KB
/
docker.yaml
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
name: Test and Push
on:
pull_request:
paths-ignore:
- "*.md"
push:
branches:
- main
paths-ignore:
- "*.md"
jobs:
build-images:
name: Build Docker Images
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Clone Main Repo
uses: actions/checkout@v2
with:
path: main
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Dev Dependencies
run: |
python -m pip install --upgrade pip
make -C main dev-env
- name: Build Docker Images
run: make -C main build-all
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Login to Docker Hub
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Images to DockerHub
if: github.ref == 'refs/heads/main'
run: make -C main push-all