Skip to content

Commit

Permalink
pass the docker creds in for included case
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 20, 2024
1 parent a896b8c commit 4b76355
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
required: false
type: string
default: ''
docker_user:
required: true
type: string
docker_token:
required: true
type: string
push:
tags:
# so a vX.Y.Z-test1 doesn't trigger build
Expand Down Expand Up @@ -35,8 +41,8 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # pin@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ inputs.docker_user || secrets.DOCKER_USER }}
password: ${{ inputs.docker_token || secrets.DOCKER_TOKEN }}
- name: "GoReleaser Action"
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # [email protected]
with:
Expand Down

0 comments on commit 4b76355

Please sign in to comment.