Skip to content

Commit cf46896

Browse files
authored
Merge pull request #7 from crazy-max/fix-godev
Fix godev workflow
2 parents fe6dc62 + 6afa7a6 commit cf46896

File tree

3 files changed

+12
-42
lines changed

3 files changed

+12
-42
lines changed

.github/workflows/godev.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Workflow used to make a request to proxy.golang.org to refresh cache on https://pkg.go.dev/github.com/docker/buildx
2+
# when a released of buildx is produced
13
name: godev
24

35
on:
@@ -10,7 +12,14 @@ jobs:
1012
runs-on: ubuntu-latest
1113
steps:
1214
-
13-
name: Call pkg.go.dev
14-
uses: docker/bake-action@v1
15+
name: Set up Go
16+
uses: actions/setup-go@v2
1517
with:
16-
targets: godev
18+
go-version: 1.16
19+
-
20+
name: Call pkg.go.dev
21+
run: |
22+
go get github.com/${GITHUB_REPOSITORY}@${GITHUB_REF#refs/tags/}
23+
env:
24+
GO111MODULE: on
25+
GOPROXY: https://proxy.golang.org

docker-bake.hcl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ target "test" {
6060
output = ["."]
6161
}
6262

63-
variable "GITHUB_REPOSITORY" {}
64-
variable "GITHUB_REF" {}
65-
target "godev" {
66-
args = {
67-
GO_VERSION = GO_VERSION
68-
GITHUB_REPOSITORY = GITHUB_REPOSITORY
69-
GITHUB_REF = GITHUB_REF
70-
}
71-
dockerfile = "./hack/godev.Dockerfile"
72-
target = "godev"
73-
output = ["type=cacheonly"]
74-
}
75-
7663
target "license-validate" {
7764
dockerfile = "./hack/license.Dockerfile"
7865
target = "validate"

hack/godev.Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)