.woodpecker/2-build-latest.yml aktualisiert

This commit is contained in:
Phil 2024-10-05 21:47:15 +00:00
parent dca710815c
commit 4f4d27a7f2

View file

@ -1,41 +1,42 @@
steps: steps:
- name: build-binary-UT-lin/amd64 - name: Prepare Repo (amd64,test)
image: golang:latest image: alpine/git
commands: commands:
- go get -v -d ./... - git submodule update --init --recursive
- go build -a -installsuffix cgo -o linux-amd64 .
- name: build-docker-lt-linux-amd64/arm64/armv6 - name: Compile gmqcc (amd64,test)
image: woodpeckerci/plugin-docker-buildx:3 image: alpine
commands:
- chmod +x ci-dependencies.sh
- ./ci-dependencies.sh
- cd gmqcc
- make
- cd ..
- name: Compile SpecialSauce (amd64,test)
image: alpine
commands:
- chmod +x ci-dependencies.sh
- chmod +x build.sh
- ./ci-dependencies.sh
- bash build.sh
- name: Release_binary s3 (prod)
image: ocram85/plugin-gitea-package:latest
settings: settings:
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8 user:
repo: git.hackmi.ch/phil/goshorly
registry: git.hackmi.ch
tags: latest
username:
from_secret: reg-user from_secret: reg-user
password: password:
from_secret: reg-pass from_secret: reg-pass
build_args: debug: "true"
- CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} owner: "amogus.tv"
- CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHA:0:10} package_name: "amogusspecialsauce-latest"
depends_on: package_version: "0.1.0"
- build-binary-UT-lin/amd64 file_source: "./compiled-${DRONE_COMMIT_SHA:0:10}.zip"
when: file_name: "compiled.zip
- event: push update: "true"
branch: main
- event: cron
services:
docker:
image: docker:24-dind
commands:
- dockerd --tls=false --host=tcp://0.0.0.0:2376
privileged: true
when: when:
- event: push - event: [push, tag, cron]
branch: main branch:
- event: cron - ${CI_REPO_DEFAULT_BRANCH}
depends_on:
- 1-check