2022-12-17 01:46:24 +01: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 16:54:14 +01: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 01:46:24 +01:00
|
|
|
uses: actions/setup-go@main
|
|
|
|
with:
|
2023-01-11 03:42:02 +01:00
|
|
|
go-version: 1.19.5
|
2022-12-17 01:46:24 +01:00
|
|
|
id: go
|
2023-01-05 16:54:14 +01:00
|
|
|
-
|
|
|
|
name: Setup docker scan
|
2022-12-20 00:22:45 +01: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 16:54:14 +01:00
|
|
|
-
|
|
|
|
name: Code checkout
|
2022-12-17 01:46:24 +01:00
|
|
|
uses: actions/checkout@master
|
2023-01-05 16:54:14 +01:00
|
|
|
-
|
|
|
|
name: Publish
|
2022-12-17 01:46:24 +01:00
|
|
|
run: |
|
|
|
|
LATEST_TAG=nightly PKG_TAG=nightly make publish
|