atheme-docker/.drone.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

2020-03-01 00:17:44 -08:00
---
kind: pipeline
2020-03-07 16:49:17 -08:00
name: build
2020-03-01 00:17:44 -08:00
steps:
2020-03-07 16:49:17 -08:00
- name: "set image tags"
2020-03-01 00:17:44 -08:00
image: alpine
environment:
VERSION: "7.2.10-r2"
commands:
- "./write-tags.sh $VERSION > .tags"
2020-03-01 00:26:30 -08:00
- "# Will build the following tags:"
2020-03-01 00:17:44 -08:00
- "cat .tags"
- name: "build docker image"
# Basically plugins/docker but bumped to Docker v20.10.7 for Alpine 3.14 support
# See https://github.com/drone-plugins/drone-docker/issues/326
image: ovdnet/drone-docker
2020-03-01 00:17:44 -08:00
settings:
repo: ovdnet/atheme
username:
from_secret: docker_user
password:
from_secret: docker_password
build_args:
2020-03-01 00:26:30 -08:00
- ATHEME_VERSION=7.2.10-r2
2020-03-01 00:17:44 -08:00
trigger:
branch:
- master
volumes:
- name: docker-socket
path: /var/run/docker.sock
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
2020-03-01 00:17:44 -08:00
2020-03-07 16:49:17 -08:00
---
kind: pipeline
name: build-contrib
steps:
- name: "set image tags"
2020-03-01 00:17:44 -08:00
image: alpine
environment:
VERSION: "7.2.10-r2"
commands:
- "./write-tags.sh $VERSION contrib > .tags"
2020-03-01 00:26:30 -08:00
- "# Will build the following tags:"
2020-03-01 00:17:44 -08:00
- "cat .tags"
2020-03-07 16:49:17 -08:00
- name: "build docker image"
image: ovdnet/drone-docker
2020-03-01 00:17:44 -08:00
settings:
repo: ovdnet/atheme
username:
from_secret: docker_user
password:
from_secret: docker_password
build_args:
2020-03-01 00:26:30 -08:00
- ATHEME_VERSION=7.2.10-r2
2020-03-01 00:17:44 -08:00
- BUILD_CONTRIB_MODULES=true
trigger:
branch:
- master
volumes:
- name: docker-socket
path: /var/run/docker.sock
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock