Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-carlsen committed Jan 14, 2021
1 parent c44e2c7 commit 840d208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master # Push events on master branch
env:
IMAGE_BASE: ghcr.io/navikt/vtp
IMAGE_BASE: docker.pkg.github.com/${{ github.repository }}/vtp

jobs:
build:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Bygg, tag og push Docker image
run: |
docker build --pull --tag ${IMAGE_BASE}:${TAG} --tag ${IMAGE_BASE}:latest .
echo "$GITHUB_PASSWORD" | docker login --username "$GITHUB_USERNAME" --password-stdin ghcr.io
echo "$GITHUB_PASSWORD" | docker login --username "$GITHUB_USERNAME" --password-stdin https://docker.pkg.github.com
docker push ${IMAGE_BASE}:latest
docker push ${IMAGE_BASE}:${TAG}
env:
Expand Down

0 comments on commit 840d208

Please sign in to comment.