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