Files
oc-discovery/.drone.yml

40 lines
855 B
YAML
Raw Normal View History

2024-09-02 17:52:12 +02:00
type: docker
kind: pipeline
name: unit
steps:
2025-11-12 09:51:36 +01:00
# -------------------- tests (host arch only) --------------------
- name: test
2025-11-12 09:57:24 +01:00
image: golang:alpine
2025-11-12 09:51:36 +01:00
pull: if-not-exists
commands:
- go test ./...
# -------------------- build + push multi-arch image --------------------
- name: publish
image: plugins/docker:latest
settings:
username:
from_secret: docker-user
password:
from_secret: docker-pw
2025-11-12 10:55:21 +01:00
#repo:
# from_secret: docker-repo
repo: opencloudregistry/oc-discovery
2025-11-12 09:51:36 +01:00
# build context & dockerfile
context: .
dockerfile: Dockerfile
# enable buildx / multi-arch
buildx: true
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
# tags to push (all as a single multi-arch manifest)
tags:
- latest
2024-09-02 17:52:12 +02:00