diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 2f42b5c6..aded04da 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -5,15 +5,17 @@ on: tags: - '*' +env: + # Use docker.io for Docker Hub if empty + REGISTRY: ghcr.io + # github.repository as / + IMAGE_NAME: ${{ github.repository }} + jobs: goreleaser: permissions: contents: write - runs-on: - - environment=production - - size=xlarge - - provider=ethpandaops - - realm=platform + runs-on: ubuntu-latest steps: - name: Checkout @@ -66,8 +68,9 @@ jobs: name: Login to DockerHub 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