diff --git a/scripts/ci/release-build.sh b/scripts/ci/release-build.sh new file mode 100755 index 0000000..5e74af4 --- /dev/null +++ b/scripts/ci/release-build.sh @@ -0,0 +1,6 @@ +#!/bin/sh -e + +apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc +sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/bin +git config --global url."https://gitlab-ci-token:$PRIVATE_REPO_TOKEN@fox.flant.com/".insteadOf https://fox.flant.com/ +git config --global --add safe.directory '*' diff --git a/trdl.yaml b/trdl.yaml index 9ef5636..315e561 100644 --- a/trdl.yaml +++ b/trdl.yaml @@ -1,5 +1,5 @@ docker_image: registry.deckhouse.io/base_images/golang:1.23.1-bullseye@sha256:a24507d1a36fce86431198a979435dadb187e8d0ce0b5c181f46d6788d84a40f commands: - - echo $PRIVATE_REPO_TOKEN + - ./scripts/ci/release-build.sh - task -o group -p build:dist:all version={{ .Tag }} - cp -a ./dist/{{ .Tag }}/* /result