.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
settings: commands:
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8 - chmod +x ci-dependencies.sh
repo: git.hackmi.ch/phil/goshorly - ./ci-dependencies.sh
registry: git.hackmi.ch - cd gmqcc
tags: latest - make
username: - cd ..
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
services: - name: Compile SpecialSauce (amd64,test)
docker: image: alpine
image: docker:24-dind commands:
commands: - chmod +x ci-dependencies.sh
- dockerd --tls=false --host=tcp://0.0.0.0:2376 - chmod +x build.sh
privileged: true - ./ci-dependencies.sh
when: - bash build.sh
- event: push
branch: main
- event: cron
depends_on: - name: Release_binary s3 (prod)
- 1-check 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}