fastpastebin/.drone.yml
Stanislav N. aka pztrn 2b44a60ee7
The Great Linting Fixes, Drone configuration fix (again) and flatfile changes.
Great linting fixes has been applied, thanks to golangci-lint for
extensive reporting.

Fixed Drone configuration to use array for when-branch statement in
Docker plugin.

Flatfile storage from now will write files with 0600 permission for
greater security.
2021-11-20 22:19:58 +05:00

32 lines
562 B
YAML

---
kind: pipeline
type: docker
name: build
steps:
- name: lint
image: golangci/golangci-lint:v1.43.0
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
image: golang:1.17.3-alpine
environment:
CGO_ENABLED: 0
commands:
- go test ./...
- name: docker
image: plugins/docker
when:
branch: ["master"]
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/fastpastebin
auto_tag: true