Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/image-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
image-build-push:
name: Image build and push
runs-on: ubuntu-latest
runs-on: linux-amd64-cpu4
steps:
- name: Set repository as lower-case output variable
id: repo_name
Expand Down Expand Up @@ -36,6 +36,8 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
build-args: |
"GOPROXY=${{ secrets.GO_PROXY_URL }}"
tags: |
ghcr.io/${{ steps.repo_name.outputs.repository }}:latest
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/image-push-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
image-build-push:
name: Image build and push
runs-on: ubuntu-latest
runs-on: linux-amd64-cpu4
steps:
- name: Set repository as lower-case output variable
id: repo_name
Expand Down Expand Up @@ -40,6 +40,8 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
"GOPROXY=${{ secrets.GO_PROXY_URL }}"
tags: |
${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ TARGET_ARCH ?= $(shell go env GOARCH)
GO_BUILD_OPTS ?= CGO_ENABLED=0 GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH)
# Linker flags for go build command
GO_LDFLAGS = $(VERSION_LDFLAGS)
GOPROXY ?=

GOPROXY ?= $(shell go env GOPROXY)

PKGS = $(or $(PKG),$(shell cd $(PROJECT_DIR) && go list ./...))

Expand Down
Loading