-
Notifications
You must be signed in to change notification settings - Fork 77
43 lines (43 loc) · 1.22 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
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: Build and push the image
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./deploy/docker/web.Dockerfile
repository: mqueryci/mquery-web
tags: ${{ github.sha }}
push: ${{ github.event_name == 'push' }}
build_daemon:
name: Build image
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Build and push the image
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./deploy/docker/daemon.Dockerfile
repository: mqueryci/mquery-daemon
tags: ${{ github.sha }}
push: ${{ github.event_name == 'push' }}