From a5339f3d956814cad691774cb37bf001622f7652 Mon Sep 17 00:00:00 2001 From: Dmitry Denisenko Date: Tue, 10 Dec 2024 17:57:31 +0300 Subject: [PATCH] ++ Signed-off-by: Dmitry Denisenko --- dockerfile | 7 +++++++ trdl.yaml | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..dcd1c03 --- /dev/null +++ b/dockerfile @@ -0,0 +1,7 @@ +FROM registry.deckhouse.io/base_images/golang:1.23.1-bullseye@sha256:a24507d1a36fce86431198a979435dadb187e8d0ce0b5c181f46d6788d84a40f +ARG PRIVATE_REPO_TOKEN +ENV PRIVATE_REPO_TOKEN ${PRIVATE_REPO_TOKEN} +RUN apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc +RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/bin +RUN git config --global url."https://gitlab-ci-token:$PRIVATE_REPO_TOKEN@fox.flant.com/".insteadOf https://fox.flant.com/ +RUN git config --global --add safe.directory '*' diff --git a/trdl.yaml b/trdl.yaml index dce0d53..52c399f 100644 --- a/trdl.yaml +++ b/trdl.yaml @@ -1,7 +1,4 @@ -docker_image: registry.deckhouse.io/base_images/golang:1.23.1-bullseye@sha256:a24507d1a36fce86431198a979435dadb187e8d0ce0b5c181f46d6788d84a40f +docker_image: golang-d8:1.23.1-local commands: - - ./scripts/ci/release-build.sh - - export $PRIVATE_REPO_TOKEN - - env - - git config --list - - cat ~/.gitconfig + - task -o group -p build:dist:all version={{ .Tag }} + - cp -a ./dist/{{ .Tag }}/* /result