Skip to content

Commit

Permalink
Login using token as described in https://docs.github.com/en/packages…
Browse files Browse the repository at this point in the history
  • Loading branch information
chlunde committed Feb 20, 2024
1 parent 8139cd4 commit 4b20576
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ env:

jobs:
build-image:
permissions:
packages: write
contents: read

name: Push Docker image to GitHub Packages
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -72,12 +76,8 @@ jobs:
CHANNEL: "master"
DOCKER_REGISTRY: ghcr.io/sparebank1utvikling

- name: Login to Docker
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Disable arm64
run: sed -i s,linux_arm64,, cluster/images/*/Makefile
Expand Down

0 comments on commit 4b20576

Please sign in to comment.