Skip to content

Commit

Permalink
fix: goproxy and go version
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTheocharis committed Sep 17, 2024
1 parent d571971 commit dfe1f67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ jobs:
- name: Build Binary
run: |
mkdir -p ./dist
GOOS=${{ env.GOOS }} GOARCH=${{ env.GOARCH }} GOARM=${{ env.GOARM }} CGO_ENABLED=0 go build \
GOOS=${{ env.GOOS }} GOARCH=${{ env.GOARCH }} GOARM=${{ env.GOARM }} \
CGO_ENABLED=0 GOPROXY=https://golangproxy.umh.app,https://proxy.golang.org,direct \
go build \
-ldflags "-s -w \
-X github.com/redpanda-data/benthos/v4/internal/cli.Version=${APP_VERSION} \
-X github.com/redpanda-data/benthos/v4/internal/cli.DateBuilt=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM management.umh.app/oci/library/golang:1.22 as build
FROM management.umh.app/oci/library/golang:1.23 as build

RUN useradd -u 10001 benthos

WORKDIR /go/src/github.com/united-manufacturing-hub/benthos-umh

ENV GOPROXY=https://golangproxy.umh.app,https://proxy.golang.org,direct

COPY go.mod go.sum ./
RUN go mod download

Expand Down

0 comments on commit dfe1f67

Please sign in to comment.