Skip to content

Commit

Permalink
use proper way to pass secrets instead of chatgpt nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 20, 2024
1 parent 4b76355 commit 9e1dfa4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
required: false
type: string
default: ''
docker_user:
secrets:
DOCKER_USER:
required: true
DOCKER_TOKEN:
required: true
GH_PAT:
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 @@ -41,8 +42,8 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # pin@v2
with:
username: ${{ inputs.docker_user || secrets.DOCKER_USER }}
password: ${{ inputs.docker_token || secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: "GoReleaser Action"
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # [email protected]
with:
Expand Down

0 comments on commit 9e1dfa4

Please sign in to comment.