atheme-docker/.drone.yml

77 lines
1.3 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
2021-08-29 20:51:04 -07:00
platform:
os: linux
arch: amd64
2020-03-01 00:17:44 -08:00
steps:
2021-08-29 20:51:04 -07:00
- name: set image tags
2020-03-01 00:17:44 -08:00
image: alpine
commands:
2021-08-29 20:51:04 -07:00
- ./write-tags.sh $VERSION contrib > .tags
- "# Will build the following tags:"
- cat .tags
environment:
VERSION: 7.2.10-r2
2020-03-01 00:17:44 -08:00
2021-08-29 20:51:04 -07:00
- name: build docker image
image: ovdnet/drone-docker
2020-03-01 00:17:44 -08:00
settings:
2021-08-29 20:51:04 -07:00
build_args:
- ATHEME_VERSION=7.2.10-r2
password:
from_secret: docker_password
2020-03-01 00:17:44 -08:00
repo: ovdnet/atheme
username:
from_secret: docker_user
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
2021-08-29 20:51:04 -07:00
platform:
os: linux
arch: amd64
2020-03-07 16:49:17 -08:00
steps:
2021-08-29 20:51:04 -07:00
- name: set image tags
2020-03-01 00:17:44 -08:00
image: alpine
commands:
2021-08-29 20:51:04 -07:00
- ./write-tags.sh $VERSION contrib > .tags
- "# Will build the following tags:"
- cat .tags
environment:
VERSION: 7.2.10-r2
2020-03-01 00:17:44 -08:00
2021-08-29 20:51:04 -07:00
- name: build docker image
image: ovdnet/drone-docker
2020-03-01 00:17:44 -08:00
settings:
2021-08-29 20:51:04 -07:00
build_args:
- ATHEME_VERSION=7.2.10-r2
- BUILD_CONTRIB_MODULES=true
password:
from_secret: docker_password
2020-03-01 00:17:44 -08:00
repo: ovdnet/atheme
username:
from_secret: docker_user
volumes:
- name: docker-socket
path: /var/run/docker.sock
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
2021-08-29 20:51:04 -07:00
...