blob: a8a47ef692fcfd9219655d820b9e8bbc15fc6059 (
plain) (
blame)
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
|
name: Build
on:
push:
branches: [ master ]
schedule:
- cron: '5 4 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
make docker-test
push:
runs-on: ubuntu-latest
needs: [ build ]
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: docker/login-action@v1
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
registry: ghcr.io
username: $GITHUB_USER
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
make docker-push \
DOCKER_EXTRA_ARGS="-v ${HOME}/.docker:/root/.docker"
|