-
Notifications
You must be signed in to change notification settings - Fork 79
46 lines (46 loc) · 1.31 KB
/
image-ci.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
46
name: Generate Image Daily
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 22 * * *'
jobs:
kubedl-controller-daily-image:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
run: |
export IMAGE="kubedl/kubedl:daily"
make docker-build
make docker-push
kubedl-dashboard-daily-image:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
run: |
export IMAGE="kubedl/dashboard:daily"
make dashboard-image-build
make dashboard-image-push