From ad108b8939e6e9e9dd66eca8fc91e82e48b766be Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 19 Apr 2024 16:09:08 +0200 Subject: [PATCH] =?UTF-8?q?.woodpecker/build-latest=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/build-latest | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .woodpecker/build-latest diff --git a/.woodpecker/build-latest b/.woodpecker/build-latest new file mode 100644 index 0000000..95e2c0c --- /dev/null +++ b/.woodpecker/build-latest @@ -0,0 +1,40 @@ +steps: + - name: build-binary-UT-lin/amd64 + image: golang:latest + commands: + - go get -v -d ./... + - go build -a -installsuffix cgo -o linux-amd64 . + + - name: build-docker-latest-lin/amd64 + image: woodpeckerci/plugin-docker-buildx:3 + environment: + - DOCKER_HOST=tcp://docker:2376 + settings: + platforms: linux/amd64 + repo: git.hackmi.ch/Phil/goshorly + registry: git.hackmi.ch + tags: latest + username: + from_secret: reg-user + password: + from_secret: reg-pass + build_args: + - CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} + - CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHA:0:8} + depends_on: + - build-binary-UT-lin/amd64 + when: + - event: push + branch: main + - event: [tag, deployment, release, cron] + +services: + docker: + image: docker:24-dind + commands: + - dockerd --tls=false --host=tcp://0.0.0.0:2376 + privileged: true + +depends_on: + - check-format + - check-sec \ No newline at end of file