Compare commits

...

2 Commits

Author SHA1 Message Date
fb11864497 fix(ci): add build args containing GO environment variables
Some checks failed
Auto release / tag_on_change (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
2025-10-22 22:39:27 +02:00
3591183c71 fix(ci): set git user name 2025-10-22 22:38:47 +02:00
3 changed files with 12 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
new_tag=${{ steps.bump.outputs.new_tag }} new_tag=${{ steps.bump.outputs.new_tag }}
git config --local user.name "${GIT_USERNAME}" git config --local user.name "${GIT_USER}"
git config --local user.email "${GIT_EMAIL}" git config --local user.email "${GIT_EMAIL}"
git tag -a "${new_tag}" -m "${new_tag}" git tag -a "${new_tag}" -m "${new_tag}"
git push origin "${new_tag}" git push origin "${new_tag}"

View File

@@ -1,6 +1,9 @@
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
ARG DC_VERSION=main ARG DC_VERSION=main
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
RUN set -ex && \ RUN set -ex && \
apk update && \ apk update && \

View File

@@ -17,12 +17,20 @@ DC_IMAGE_NAME:=docker-compose
DC_IMAGE_VERSION?=latest DC_IMAGE_VERSION?=latest
DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION} DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION}
# Golang related environment variables
GONOSUMDB?=
GOPRIVATE?=
GOPROXY?=
# BUILD CONTAINER IMAGE # BUILD CONTAINER IMAGE
# ===================================================================================================================== # =====================================================================================================================
PHONY:=container-image/build PHONY:=container-image/build
container-image/build: container-image/build:
${CONTAINER_RUNTIME} build \ ${CONTAINER_RUNTIME} build \
--build-arg DC_VERSION=${DC_VERSION} \ --build-arg DC_VERSION=${DC_VERSION} \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--file Dockerfile \ --file Dockerfile \
--no-cache \ --no-cache \
--pull \ --pull \