.github/workflows/nightly-build.yml: added dockerhub login (#3594)

This commit is contained in:
Denys Holius 2023-01-05 17:54:14 +02:00 committed by GitHub
parent ec2c82e800
commit 043b28c725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,18 +12,28 @@ jobs:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setup Go -
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Setup Go
uses: actions/setup-go@main uses: actions/setup-go@main
with: with:
go-version: 1.19.4 go-version: 1.19.4
id: go id: go
- name: Setup docker scan -
name: Setup docker scan
run: | run: |
mkdir -p ~/.docker/cli-plugins && \ 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 &&\ 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 chmod +x ~/.docker/cli-plugins/docker-scan
- name: Code checkout -
name: Code checkout
uses: actions/checkout@master uses: actions/checkout@master
- name: Publish -
name: Publish
run: | run: |
LATEST_TAG=nightly PKG_TAG=nightly make publish LATEST_TAG=nightly PKG_TAG=nightly make publish