Skip to content

Commit

Permalink
Merge pull request #110 from usommerl/feature/use-github-token-to-log…
Browse files Browse the repository at this point in the history
…in-to-ghcr-io

Use GITHUB_TOKEN instead of personal access token to login to ghcr.io
  • Loading branch information
usommerl authored Apr 18, 2021
2 parents f0cb6f7 + 5415068 commit 3319c7c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Docker login
env:
TOKEN: ${{ secrets.PAT_GHCR }}
USERNAME: ${{ github.repository_owner }}
run: echo $TOKEN | docker login ghcr.io -u $USERNAME --password-stdin
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and publish a docker image with a UPX compressed executable
run: export UPX_COMPRESSION='--best'; sbt ';docker;dockerPush'
- name: Create and publish a docker image without compression
Expand Down

0 comments on commit 3319c7c

Please sign in to comment.