mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
.github/workflows/nightly-build.yml: added dockerhub login (#3594)
This commit is contained in:
parent
ec2c82e800
commit
043b28c725
1 changed files with 14 additions and 4 deletions
18
.github/workflows/nightly-build.yml
vendored
18
.github/workflows/nightly-build.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue