Gisle Aune
5 years ago
3 changed files with 134 additions and 24 deletions
@ -0,0 +1,96 @@ |
|||
name: stufflog |
|||
|
|||
kind: pipeline |
|||
type: docker |
|||
|
|||
steps: |
|||
- name: go-build-1.11 |
|||
image: golang:1.11 |
|||
commands: |
|||
- go mod download |
|||
- CGO_ENABLED=0 go build -ldflags "-w -s" -o /build/lektura main.go |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: go-build-1.12 |
|||
image: golang:1.12 |
|||
commands: |
|||
- go mod download |
|||
- CGO_ENABLED=0 go build -ldflags "-w -s" -o /build/lektura main.go |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: go-build-1.13 |
|||
image: golang:1.13 |
|||
commands: |
|||
- go mod download |
|||
- CGO_ENABLED=0 go build -ldflags "-w -s" -o /build/lektura main.go |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: go-test |
|||
image: golang:1.13 |
|||
commands: |
|||
- go test -v ./... |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: js-build |
|||
image: node:10.16.1 |
|||
commands: |
|||
- cd svelte-ui |
|||
- npm install |
|||
- npm run build |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: docker-test |
|||
image: plugins/docker |
|||
settings: |
|||
auto_tag: true |
|||
username: |
|||
from_secret: docker_username |
|||
password: |
|||
from_secret: docker_password |
|||
repo: vmaple/stufflog |
|||
dry_run: true |
|||
when: |
|||
event: |
|||
exclude: |
|||
- tag |
|||
|
|||
- name: docker-release-tag |
|||
image: plugins/docker |
|||
settings: |
|||
auto_tag: true |
|||
username: |
|||
from_secret: docker_username |
|||
password: |
|||
from_secret: docker_password |
|||
repo: vmaple/stufflog |
|||
when: |
|||
event: |
|||
- tag |
|||
|
|||
- name: docker-release-latest |
|||
image: plugins/docker |
|||
settings: |
|||
auto_tag: false |
|||
username: |
|||
from_secret: docker_username |
|||
password: |
|||
from_secret: docker_password |
|||
repo: vmaple/stufflog |
|||
when: |
|||
event: |
|||
- tag |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="VcsDirectoryMappings"> |
|||
<mapping directory="$PROJECT_DIR$" vcs="Git" /> |
|||
</component> |
|||
</project> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue