rbxcompiler/.drone.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-11 00:16:40 +00:00
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
2021-08-11 01:37:05 +00:00
- name: artifacts
image: curlimages/curl:7.78.0
2021-08-11 01:39:41 +00:00
environment:
NEXUS_USER:
from_secret: NEXUS_USER
NEXUS_PASSWORD:
from_secret: NEXUS_PASSWORD
2021-08-11 01:37:05 +00:00
commands:
2021-08-11 01:39:41 +00:00
- curl -u $${NEXUS_USER}:$${NEXUS_PASSWORD} --upload-file rbxcompiler https://nexus.itzana.me/repository/public/artifacts/itzaname/rbxcompiler-amd64-linux
2021-08-11 01:37:05 +00:00
- name: docker
2021-08-11 00:16:40 +00:00
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:
2021-08-11 01:34:48 +00:00
- master