Compare commits

..

2 Commits

Author SHA1 Message Date
peter 1112550f30 fix: standardize Dockerfile stage names to uppercase
default-request-adder / vulnerabilities (pull_request) Successful in 1m52s
default-request-adder / test (pull_request) Successful in 3m29s
default-request-adder / build (pull_request) Failing after 54m53s
Updates the Dockerfile to use uppercase for multi-stage build
definitions. This change enhances readability and maintains consistency
across the build stages, ensuring alignment with common best practices in
Dockerfile conventions.
2026-01-19 08:28:02 +01:00
peter 936cc80c8e build: support multi-architecture builds in Dockerfile
Add ARG directives for TARGETOS and TARGETARCH to enable 
multi-architecture support. Modify the build command to 
use the specified target OS and architecture for more 
flexible and portable builds. Ensure compatibility 
with different deployment environments.
2026-01-19 08:26:49 +01:00
7 changed files with 33 additions and 81 deletions
-8
View File
@@ -1,8 +0,0 @@
{
"permissions": {
"allow": [
"Bash(but rub --help:*)",
"Bash(but status)"
]
}
}
+20
View File
@@ -0,0 +1,20 @@
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- project: unboundsoftware/ci-templates
file: Defaults.gitlab-ci.yml
- project: unboundsoftware/ci-templates
file: Release.gitlab-ci.yml
stages:
- build
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
build:
stage: build
script:
- build
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
- push
+1 -1
View File
@@ -1,3 +1,3 @@
{
"version": "1.6.4"
"version": "1.6.0"
}
-60
View File
@@ -2,66 +2,6 @@
All notable changes to this project will be documented in this file.
## [1.6.4] - 2026-03-19
### 🐛 Bug Fixes
- *(deps)* Update kubernetes monorepo to v0.35.3 (#265)
### ⚙️ Miscellaneous Tasks
- *(deps)* Update golang:1.26.1 docker digest to cdebbd5 (#254)
- *(deps)* Update golang:1.26.1 docker digest to c7e98cc (#255)
- *(deps)* Update golang:1.26.1 docker digest to 318ba17 (#257)
- *(deps)* Update golang:1.26.1 docker digest to 16e774b (#259)
- *(deps)* Update golang:1.26.1 docker digest to dd25c49 (#261)
- *(deps)* Update golang:1.26.1 docker digest to c42e4d7 (#263)
## [1.6.3] - 2026-03-06
### 🐛 Bug Fixes
- *(deps)* Update kubernetes packages to v0.35.2 (#247)
### ⚙️ Miscellaneous Tasks
- *(deps)* Update golang:1.26.0 docker digest to b39810f (#242)
- *(deps)* Update golang:1.26.0 docker digest to b751797 (#243)
- *(deps)* Update golang:1.26.0 docker digest to a9c4aac (#244)
- *(deps)* Update golang:1.26.0 docker digest to 9edf713 (#246)
- *(deps)* Update golang:1.26.0 docker digest to fb612b7
- *(deps)* Update golang docker tag to v1.26.1 (#251)
- *(deps)* Update dependency go to v1.26.1 (#250)
## [1.6.2] - 2026-02-11
### 🐛 Bug Fixes
- *(deps)* Update kubernetes packages to v0.35.1 (#241)
### ⚙️ Miscellaneous Tasks
- *(deps)* Update golang:1.25.6 docker digest to ce63a16 (#230)
- Remove unused .gitlab-ci.yml
- *(deps)* Update golang:1.25.6 docker digest to 4c973c7 (#233)
- *(deps)* Update golang:1.25.6 docker digest to 06d1251 (#234)
- *(deps)* Update dependency go to v1.25.7 (#235)
- *(deps)* Update golang docker tag to v1.25.7 (#236)
- *(deps)* Update golang:1.25.7 docker digest to cc73743 (#237)
- *(deps)* Update dependency go to v1.26.0 (#238)
- *(deps)* Update golang:1.25.7 docker digest to 85c0ab0 (#240)
- *(deps)* Update golang docker tag to v1.26.0
## [1.6.1] - 2026-01-19
### 🐛 Bug Fixes
- Standardize Dockerfile stage names to uppercase
### Build
- Support multi-architecture builds in Dockerfile
## [1.6.0] - 2026-01-16
### 🚀 Features
+2 -2
View File
@@ -1,4 +1,4 @@
FROM golang:1.26.1@sha256:cd78d88e00afadbedd272f977d375a6247455f3a4b1178f8ae8bbcb201743a8a AS deps
FROM golang:1.25.6@sha256:fc24d3881a021e7b968a4610fc024fba749f98fe5c07d4f28e6cfa14dc65a84c AS deps
WORKDIR /build
ADD go.* /build
RUN go mod download
@@ -17,7 +17,7 @@ RUN ["/bin/bash", "-c", "cat coverage.txt.tmp | grep -v -f <(find . -type f | xa
RUN go tool cover -html=coverage.txt -o coverage.html
RUN go tool cover -func=coverage.txt
RUN rm coverage.txt.tmp
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -mod=readonly -o release/default-request-adder -ldflags '-w -s'
RUN iGOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -mod=readonly -o release/default-request-adder -ldflags '-w -s'
FROM scratch AS export
COPY --from=build /build/coverage.txt /
+4 -4
View File
@@ -2,12 +2,12 @@ module gitlab.com/unboundsoftware/default-request-adder
go 1.25.0
toolchain go1.26.1
toolchain go1.25.6
require (
k8s.io/api v0.35.3
k8s.io/apimachinery v0.35.3
k8s.io/client-go v0.35.3
k8s.io/api v0.35.0
k8s.io/apimachinery v0.35.0
k8s.io/client-go v0.35.0
)
require (
+6 -6
View File
@@ -108,12 +108,12 @@ gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.35.3 h1:pA2fiBc6+N9PDf7SAiluKGEBuScsTzd2uYBkA5RzNWQ=
k8s.io/api v0.35.3/go.mod h1:9Y9tkBcFwKNq2sxwZTQh1Njh9qHl81D0As56tu42GA4=
k8s.io/apimachinery v0.35.3 h1:MeaUwQCV3tjKP4bcwWGgZ/cp/vpsRnQzqO6J6tJyoF8=
k8s.io/apimachinery v0.35.3/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
k8s.io/client-go v0.35.3 h1:s1lZbpN4uI6IxeTM2cpdtrwHcSOBML1ODNTCCfsP1pg=
k8s.io/client-go v0.35.3/go.mod h1:RzoXkc0mzpWIDvBrRnD+VlfXP+lRzqQjCmKtiwZ8Q9c=
k8s.io/api v0.35.0 h1:iBAU5LTyBI9vw3L5glmat1njFK34srdLmktWwLTprlY=
k8s.io/api v0.35.0/go.mod h1:AQ0SNTzm4ZAczM03QH42c7l3bih1TbAXYo0DkF8ktnA=
k8s.io/apimachinery v0.35.0 h1:Z2L3IHvPVv/MJ7xRxHEtk6GoJElaAqDCCU0S6ncYok8=
k8s.io/apimachinery v0.35.0/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
k8s.io/client-go v0.35.0 h1:IAW0ifFbfQQwQmga0UdoH0yvdqrbwMdq9vIFEhRpxBE=
k8s.io/client-go v0.35.0/go.mod h1:q2E5AAyqcbeLGPdoRB+Nxe3KYTfPce1Dnu1myQdqz9o=
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZcmKS3g6CthxToOb37KgwE=