63 lines
764 B
YAML
63 lines
764 B
YAML
---
|
|
kind: signature
|
|
hmac: a8842634682b78946a2
|
|
|
|
---
|
|
kind: secret
|
|
type: encrypted
|
|
name: token
|
|
data: f0e4c2f76c58916ec25
|
|
|
|
---
|
|
kind: pipeline
|
|
type: podman
|
|
name: default
|
|
version: 1
|
|
|
|
depends_on:
|
|
- dependency
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
workspace:
|
|
path: /drone/src
|
|
|
|
clone:
|
|
depth: 50
|
|
|
|
environment:
|
|
NODE_ENV: development
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang
|
|
detach: false
|
|
failure: ignore
|
|
mem_limit: 1GiB
|
|
memswap_limit: 2GiB
|
|
commands:
|
|
- go build
|
|
- go test
|
|
environment:
|
|
GOOS: linux
|
|
GOARCH: arm64
|
|
depends_on: [ clone ]
|
|
when:
|
|
event: [ push ]
|
|
|
|
services:
|
|
- name: redis
|
|
image: redis:latest
|
|
entrypoint: [ "/bin/redis-server" ]
|
|
command: [ "--debug" ]
|
|
|
|
image_pull_secrets:
|
|
- podmanconfigjson
|
|
|
|
trigger:
|
|
branch: [ master ]
|
|
|
|
...
|