Skip to content

Commit

Permalink
Update goreleaser.yml (#285)
Browse files Browse the repository at this point in the history
Update docker login code to use the login action & not require variables to be passed twice
  • Loading branch information
ShubhamTatvamasi authored Nov 3, 2022
1 parent 7bdadef commit 11d0338
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
# run: |
# sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft

- name: Docker Login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# - name: Snapcraft Login
# env:
Expand Down

0 comments on commit 11d0338

Please sign in to comment.