summaryrefslogtreecommitdiffci
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
-rw-r--r--Jenkinsfile14
2 files changed, 3 insertions, 17 deletions
diff --git a/Dockerfile b/Dockerfile
index d0b6621..37fe431 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,7 @@
FROM golang:1.26.4-alpine3.24 AS build-stage
-ARG TARGETOS=linux
-ARG TARGETARCH=amd64
-ENV GOOS=${TARGETOS}
-ENV GOARCH=${TARGETARCH}
+ENV GOOS=linux
+ENV GOARCH=amd64
RUN apk add --no-cache sqlite-dev musl-dev gcc
diff --git a/Jenkinsfile b/Jenkinsfile
index c9103e8..2eb561b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -48,14 +48,6 @@ spec:
imagePullPolicy: Always
command: [ /busybox/cat ]
tty: true
- resources:
- requests:
- cpu: "1"
- memory: 2Gi
- ephemeral-storage: 4Gi
- limits:
- memory: 4Gi
- ephemeral-storage: 8Gi
"""
}
}
@@ -77,11 +69,7 @@ spec:
if [ "$TAG_NAME" != "" ]; then
pushToTags="$pushToTags $IMAGE_PUSH_DESTINATION:stable $IMAGE_PUSH_DESTINATION:$TAG_NAME"
fi
- /kaniko/executor --context `pwd` \
- --custom-platform=${GOOS}/${GOARCH} \
- --build-arg TARGETOS=${GOOS}
- --build-arg TARGETARCH=${GOARCH}
- --destination $pushToTags
+ /kaniko/executor --context `pwd` --custom-platform=${GOOS}/${GOARCH} --destination $pushToTags
'''
} catch (Exception e) {
echo "Caught exception: ${e.getMessage()}"