Skip to content

Commit

Permalink
Use GITHUB_TOKEN and github.actor
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Dec 14, 2019
1 parent a17c442 commit edf51db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

env:
IMAGE_NAME: ib-gateway-docker
GH_USER: antequant-service-user

jobs:
build:
Expand All @@ -26,7 +25,7 @@ jobs:

- name: Log in to GitHub Package Registry
if: github.event_name == 'push'
run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u "$GH_USER" --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin

- name: Push image
if: github.event_name == 'push'
Expand Down

0 comments on commit edf51db

Please sign in to comment.