Skip to content

Commit

Permalink
use gchr instead of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Grøndahl Glavind committed Mar 11, 2021
1 parent 4b83502 commit 5dc7822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

env:
# TODO: Change variable to your image's name.
IMAGE_NAME: image
IMAGE_NAME: hello-go-app

jobs:
# Run tests.
Expand Down Expand Up @@ -51,11 +51,11 @@ jobs:
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand Down

0 comments on commit 5dc7822

Please sign in to comment.