Skip to content

Commit af6ee3f

Browse files
committed
Revert "ci: add support for target OS and architecture in build configuration (#498)"
This reverts commit ceffecd.
1 parent ceffecd commit af6ee3f

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

.github/workflows/build-dev.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,10 @@ jobs:
5959
provenance: false
6060
build-args: |
6161
APP_VERSION=dev-build.${{ steps.vars.outputs.short_sha }}
62-
TARGETOS=${{ matrix.os }}
63-
TARGETARCH=${{ matrix.arch }}
6462
push: false
6563
load: true
6664
tags: ${{ steps.meta.outputs.tags }}
6765
labels: ${{ steps.meta.outputs.labels }}
68-
platforms: linux/amd64
6966
cache-from: type=gha
7067
cache-to: type=gha,mode=max
7168

@@ -89,11 +86,8 @@ jobs:
8986
provenance: false
9087
build-args: |
9188
APP_VERSION=dev-build.${{ steps.vars.outputs.short_sha }}
92-
TARGETOS=${{ matrix.os }}
93-
TARGETARCH=${{ matrix.arch }}
9489
push: ${{ github.event_name != 'pull_request' }}
9590
tags: ${{ steps.meta.outputs.tags }}
9691
labels: ${{ steps.meta.outputs.labels }}
97-
platforms: linux/amd64
9892
cache-from: type=gha
9993
cache-to: type=gha,mode=max

.github/workflows/build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
provenance: false
5151
build-args: |
5252
APP_VERSION=${{ github.ref_name }}
53-
TARGETOS=${{ matrix.os }}
54-
TARGETARCH=${{ matrix.arch }}
5553
push: ${{ startsWith(github.ref, 'refs/tags/') }}
5654
tags: ${{ steps.meta.outputs.tags }}
5755
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
FROM golang:1.24.5@sha256:14fd8a55e59a560704e5fc44970b301d00d344e45d6b914dda228e09f359a088 AS build-stage
33

44
ARG APP_VERSION=dev
5-
ARG TARGETOS=linux
6-
ARG TARGETARCH=amd64
75

86
# Set destination for COPY
97
WORKDIR /app
@@ -22,8 +20,7 @@ COPY . ./
2220
# Set build environment
2321
ENV GOCACHE=/root/.cache/go-build \
2422
CGO_ENABLED=0 \
25-
GOOS=${TARGETOS} \
26-
GOARCH=${TARGETARCH}
23+
GOOS=linux
2724

2825
# Build and strip binary
2926
RUN --mount=type=cache,target=/go/pkg/mod/ \

0 commit comments

Comments
 (0)