.woodpecker/2-build-latest.yml aktualisiert
This commit is contained in:
parent
dca710815c
commit
4f4d27a7f2
1 changed files with 38 additions and 37 deletions
|
@ -1,41 +1,42 @@
|
|||
steps:
|
||||
- name: build-binary-UT-lin/amd64
|
||||
image: golang:latest
|
||||
- name: Prepare Repo (amd64,test)
|
||||
image: alpine/git
|
||||
commands:
|
||||
- go get -v -d ./...
|
||||
- go build -a -installsuffix cgo -o linux-amd64 .
|
||||
- git submodule update --init --recursive
|
||||
|
||||
- name: build-docker-lt-linux-amd64/arm64/armv6
|
||||
image: woodpeckerci/plugin-docker-buildx:3
|
||||
- name: Compile gmqcc (amd64,test)
|
||||
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:
|
||||
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8
|
||||
repo: git.hackmi.ch/phil/goshorly
|
||||
registry: git.hackmi.ch
|
||||
tags: latest
|
||||
username:
|
||||
user:
|
||||
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
|
||||
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"
|
||||
|
||||
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
|
||||
|
||||
depends_on:
|
||||
- 1-check
|
||||
when:
|
||||
- event: [push, tag, cron]
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
Loading…
Reference in a new issue