Skip to content

Commit

Permalink
Merge pull request #7 from crazy-max/fix-godev
Browse files Browse the repository at this point in the history
Fix godev workflow
  • Loading branch information
crazy-max authored Aug 25, 2021
2 parents fe6dc62 + 6afa7a6 commit cf46896
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 42 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/godev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Workflow used to make a request to proxy.golang.org to refresh cache on https://pkg.go.dev/github.com/docker/buildx
# when a released of buildx is produced
name: godev

on:
Expand All @@ -10,7 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
-
name: Call pkg.go.dev
uses: docker/bake-action@v1
name: Set up Go
uses: actions/setup-go@v2
with:
targets: godev
go-version: 1.16
-
name: Call pkg.go.dev
run: |
go get github.com/${GITHUB_REPOSITORY}@${GITHUB_REF#refs/tags/}
env:
GO111MODULE: on
GOPROXY: https://proxy.golang.org
13 changes: 0 additions & 13 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ target "test" {
output = ["."]
}

variable "GITHUB_REPOSITORY" {}
variable "GITHUB_REF" {}
target "godev" {
args = {
GO_VERSION = GO_VERSION
GITHUB_REPOSITORY = GITHUB_REPOSITORY
GITHUB_REF = GITHUB_REF
}
dockerfile = "./hack/godev.Dockerfile"
target = "godev"
output = ["type=cacheonly"]
}

target "license-validate" {
dockerfile = "./hack/license.Dockerfile"
target = "validate"
Expand Down
26 changes: 0 additions & 26 deletions hack/godev.Dockerfile

This file was deleted.

0 comments on commit cf46896

Please sign in to comment.