-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (81 loc) · 2.5 KB
/
push_hub.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build and push docker images
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_web:
name: Build image
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v4
with:
file: ./deploy/docker/web.Dockerfile
repository: nazywam/mtracker-web
tags: |
nazywam/mtracker-web:master
nazywam/mtracker-web:${{ github.sha }}
push: ${{ github.event_name == 'push' }}
# Flux v1 doesn't support OCI-compliant manifests
provenance: false
build_scheduler:
name: Build image
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v4
with:
file: ./deploy/docker/scheduler.Dockerfile
repository: nazywam/mtracker-scheduler
tags: |
nazywam/mtracker-scheduler:master
nazywam/mtracker-scheduler:${{ github.sha }}
push: ${{ github.event_name == 'push' }}
# Flux v1 doesn't support OCI-compliant manifests
provenance: false
build_worker:
name: Build image
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v4
with:
file: ./deploy/docker/worker.Dockerfile
repository: nazywam/mtracker-worker
tags: |
nazywam/mtracker-worker:master
nazywam/mtracker-worker:${{ github.sha }}
push: ${{ github.event_name == 'push' }}
# Flux v1 doesn't support OCI-compliant manifests
provenance: false