Skip to content

Commit 30b8e48

Browse files
committed
chore: Use custom image builder and pass GO_PROXY_URL
Signed-off-by: Ivan Kolodiazhnyi <[email protected]>
1 parent 76b8f11 commit 30b8e48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/image-push-main.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
image-build-push:
88
name: Image build and push
9-
runs-on: ubuntu-latest
9+
runs-on: linux-amd64-cpu4
1010
steps:
1111
- name: Set repository as lower-case output variable
1212
id: repo_name
@@ -36,6 +36,8 @@ jobs:
3636
context: .
3737
push: true
3838
platforms: linux/amd64,linux/arm64
39+
build-args: |
40+
"GOPROXY=${{ secrets.GO_PROXY_URL }}"
3941
tags: |
4042
ghcr.io/${{ steps.repo_name.outputs.repository }}:latest
4143
labels: ${{ steps.docker_meta.outputs.labels }}

.github/workflows/image-push-release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
image-build-push:
88
name: Image build and push
9-
runs-on: ubuntu-latest
9+
runs-on: linux-amd64-cpu4
1010
steps:
1111
- name: Set repository as lower-case output variable
1212
id: repo_name
@@ -40,6 +40,8 @@ jobs:
4040
context: .
4141
platforms: linux/amd64,linux/arm64
4242
push: true
43+
build-args: |
44+
"GOPROXY=${{ secrets.GO_PROXY_URL }}"
4345
tags: |
4446
${{ steps.docker_meta.outputs.tags }}
4547
labels: ${{ steps.docker_meta.outputs.labels }}

0 commit comments

Comments
 (0)