rbxcompiler/.drone.yml
2021-08-10 21:34:48 -04:00

31 lines
774 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: golang:1.16
commands:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
- name: build
image: golang:1.16
commands:
- cp /etc/ssl/certs/ca-certificates.crt .
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o rbxcompiler ./cmd/rbxcompiler
- name: push-docker
image: plugins/docker:19
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
registry: registry.itzana.me
repo: registry.itzana.me/public/rbxcompiler
tags:
- latest
when:
branch:
- master