-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1008 Bytes
/
docker-build.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
name: docker-build
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"
env:
CR_PATH: ghcr.io/anlab-kaist
jobs:
image:
strategy:
matrix:
image:
["git-jekyll", "jenkins", "actions-runner", "dnsmasq", "iptables", "dnscrypt-proxy"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image image
run: |
docker build ${{ matrix.image }} --tag ${{matrix.image}}:latest
- name: Log into GitHub Container Registry
run: echo "${{ secrets.CR_TOKEN }}" | docker login https://ghcr.io -u ${{ secrets.CR_NAME }} --password-stdin
- name: Push image to GitHub Container Registry
run: |
docker tag ${{matrix.image}}:latest $CR_PATH/${{matrix.image}}:latest
docker push $CR_PATH/${{matrix.image}}:latest
keepalive:
needs: [image]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gautamkrishnar/keepalive-workflow@v1