1
0
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:
Simon Aronsson 2021-03-28 21:43:54 +02:00 committed by GitHub
parent 027584aca2
commit c4c0533bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,11 @@ jobs:
uses: actions/setup-go@v2
with:
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
uses: goreleaser/goreleaser-action@v2
with:
@ -140,7 +145,6 @@ jobs:
--variant v8
- name: Push manifests to Dockerhub
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:latest