2022-12-17 00:46:24 +00:00
|
|
|
name: nightly-build
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Daily at 2:48am
|
|
|
|
- cron: '48 2 * * *'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-05 15:54:14 +00:00
|
|
|
-
|
|
|
|
name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Setup Go
|
2022-12-17 00:46:24 +00:00
|
|
|
uses: actions/setup-go@main
|
|
|
|
with:
|
|
|
|
go-version: 1.19.4
|
|
|
|
id: go
|
2023-01-05 15:54:14 +00:00
|
|
|
-
|
|
|
|
name: Setup docker scan
|
2022-12-19 23:22:45 +00:00
|
|
|
run: |
|
|
|
|
mkdir -p ~/.docker/cli-plugins && \
|
|
|
|
curl https://github.com/docker/scan-cli-plugin/releases/latest/download/docker-scan_linux_amd64 -L -s -S -o ~/.docker/cli-plugins/docker-scan &&\
|
|
|
|
chmod +x ~/.docker/cli-plugins/docker-scan
|
2023-01-05 15:54:14 +00:00
|
|
|
-
|
|
|
|
name: Code checkout
|
2022-12-17 00:46:24 +00:00
|
|
|
uses: actions/checkout@master
|
2023-01-05 15:54:14 +00:00
|
|
|
-
|
|
|
|
name: Publish
|
2022-12-17 00:46:24 +00:00
|
|
|
run: |
|
|
|
|
LATEST_TAG=nightly PKG_TAG=nightly make publish
|