Skip to content

Commit

Permalink
INTG-2169 docker login (#230)
Browse files Browse the repository at this point in the history
docker login in GitHub actions
  • Loading branch information
MickStanciu authored Mar 23, 2022
1 parent be97ca4 commit 3aaefbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ jobs:
with:
go-version: 1.17

- name: Login to Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: docker
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup release environment
run: |-
echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .release-env
- name: Run GoReleaser
run: make release \
docker-user=docker \
docker-password=${{ secrets.GITHUB_TOKEN }} \
docker-host=ghcr.io
run: make release
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ release:
docker run \
--rm \
--privileged \
--env DOCKER_USERNAME=$(docker-user) \
--env DOCKER_PASSWORD=$(docker-password) \
--env DOCKER_HOST=$(docker-host) \
--env-file .release-env \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
Expand Down

0 comments on commit 3aaefbd

Please sign in to comment.