Skip to content

Commit

Permalink
fix(ci): login docker registry
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed Apr 24, 2024
1 parent 9c8178d commit da81771
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.22
go-version-file: 'go.mod'
-
name: Run Go Tests
run: go test ./... -cover -race
Expand All @@ -47,11 +47,7 @@ jobs:
needs:
- test
runs-on: ubuntu-latest
permissions:
# must be able to setup a release
contents: write
# must be able to push a package
packages: write
permissions: write-all
steps:
-
name: Checkout
Expand Down Expand Up @@ -79,6 +75,13 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit da81771

Please sign in to comment.