This repository has been archived on 2024-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
atsebay.t/.drone.yml
Pierre-Olivier Mercier 7ab4d5acfb
All checks were successful
continuous-integration/drone/push Build is passing
CI: add cron for drone-manifest action
2021-06-19 01:16:54 +02:00

66 lines
1 KiB
YAML

---
kind: pipeline
type: docker
name: build-arm
platform:
os: linux
arch: arm
steps:
- name: generate frontend
image: golang:alpine
commands:
- apk --no-cache add go-bindata
- go generate -v
- name: vet
image: golang:alpine
commands:
- apk --no-cache add build-base
- go vet -v
- name: backend armv7
image: golang:alpine
commands:
- apk --no-cache add build-base
- go get -v
- go build -v
environment:
GOARM: 7
- name: publish
image: plugins/docker:linux-arm
settings:
repo: nemunaire/atsebay.t
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
name: docker-manifest
steps:
- name: publish
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: .drone-manifest.yml
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- cron
- push
- tag
depends_on:
- build-arm