26 lines
No EOL
769 B
YAML
26 lines
No EOL
769 B
YAML
steps:
|
|
- name: test/build-binary/linux-amd64
|
|
image: golang:1.24.2
|
|
environment:
|
|
I_PACKAGE: "git.hackmi.ch/Phil/goshorly/utils"
|
|
CGO_ENABLED: 0
|
|
commands:
|
|
- export CI_COMMIT_SHA=${CI_COMMIT_SHA}
|
|
- go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHA=$CI_COMMIT_SHA -X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH -X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG" -o app .
|
|
|
|
- name: test/build-docker/linux-amd64
|
|
image: woodpeckerci/plugin-docker-buildx:5.2.2
|
|
environment:
|
|
I_PACKAGE: "git.hackmi.ch/Phil/goshorly/utils"
|
|
CGO_ENABLED: 0
|
|
settings:
|
|
dry-run: true
|
|
platforms: linux/amd64
|
|
|
|
when:
|
|
- event: [push, cron]
|
|
branch: [main, develop]
|
|
- event: pull_request
|
|
|
|
depends_on:
|
|
- 0-pre |