mirror of
https://github.com/containrrr/watchtower.git
synced 2024-12-12 09:04:17 +02:00
add dockerhub login step
This commit is contained in:
parent
027584aca2
commit
c4c0533bff
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -70,6 +70,11 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.x
|
go-version: 1.15.x
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
@ -140,7 +145,6 @@ jobs:
|
|||||||
--variant v8
|
--variant v8
|
||||||
- name: Push manifests to Dockerhub
|
- name: Push manifests to Dockerhub
|
||||||
run: |
|
run: |
|
||||||
echo "$DOCKER_PASS" | docker login -u $DOCKER_USER --password-stdin && \
|
|
||||||
docker manifest push containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \
|
docker manifest push containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \
|
||||||
docker manifest push containrrr/watchtower:latest
|
docker manifest push containrrr/watchtower:latest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user