-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.woodpecker.yml
53 lines (46 loc) · 1.15 KB
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# lint this file
# go get github.com/woodpecker-ci/woodpecker/cmd/cli
# cli lint .woodpecker.yml
variables:
- &dcape_img 'dcape-compose'
- &build_plugin 'plugins/docker'
- &golang_img 'golang:1.22.3-alpine3.20'
clone:
git:
image: woodpeckerci/plugin-git
settings:
lfs: false
tags: true
steps:
build:
image: *golang_img
commands:
- apk add --no-cache curl git make jq bash openssl
- make test
- make -f Makefile.golang build PRG_DEST=app-static
when:
- event: push
publish-dryrun:
image: *build_plugin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
settings:
dry_run: true
purge: true
tags: ["devel"]
when:
- event: push
# Build, save and run docker image.
deploy:
image: *dcape_img
commands:
- export APP_VERSION=$(git describe --tags --always)
- export RELEASE=$(git describe --tags --abbrev=0 --always)
- export ENFIST_BRANCH=$CI_REPO_DEFAULT_BRANCH
- make .build
- make .default-deploy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
- event: tag
ref: refs/tags/v*