Nicolai Ort df87fb2128
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Switch to woodpecker
2023-11-04 15:55:41 +01:00

24 lines
577 B
YAML

steps:
- name: basic build
image: registry.odit.services/hub/library/golang:1.20-alpine3.16
commands:
- go mod download
- go build -ldflags="-w -s" -o build
environment:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: amd64
- name: test with redis
image: registry.odit.services/hub/library/redis:7-alpine3.16
commands:
- redis-server & ./build &
- sleep 5
- xargs wget -O /dev/null <testing/packages.txt
environment:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: amd64
when:
event:
- pull_request