mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-07-13 07:47:28 +00:00
Merge pull request #1 from lukaszraczylo/fix/ghcr-login-in-build-step
fix(go-release-cgo): add ghcr login + buildx to build step
This commit is contained in:
@@ -201,6 +201,24 @@ jobs:
|
|||||||
name: frontend-dist
|
name: frontend-dist
|
||||||
path: ${{ inputs.node-embed-path }}
|
path: ${{ inputs.node-embed-path }}
|
||||||
|
|
||||||
|
# goreleaser Pro --split pushes Docker images during the
|
||||||
|
# per-target build job (not just the merge job), so we need
|
||||||
|
# ghcr auth here too. Only on Linux runners — Docker builds
|
||||||
|
# are Linux-only in the projects that consume this workflow.
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
if: matrix.goos == 'linux'
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
if: matrix.goos == 'linux'
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver-opts: image=moby/buildkit:latest
|
||||||
|
|
||||||
- name: Run GoReleaser (split)
|
- name: Run GoReleaser (split)
|
||||||
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user