Skip to content

Commit

Permalink
CI: publish docker image to ghrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Licari committed Feb 26, 2024
1 parent e4d8374 commit d0ed062
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ on:
tags:
- '*'

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:
goreleaser:
permissions:
contents: write
runs-on:
- environment=production
- size=xlarge
- provider=ethpandaops
- realm=platform
contents: read
packages: write
runs-on: ubuntu-latest
steps:
-
name: Checkout
Expand Down Expand Up @@ -63,11 +66,12 @@ jobs:
with:
endpoint: builders
-
name: Login to DockerHub
name: Login to docker registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Update GoReleaser config
run: |
cp .goreleaser.yaml ../.goreleaser.yaml.new
Expand Down

0 comments on commit d0ed062

Please sign in to comment.