replace gitlab ci with drone
This commit is contained in:
parent
b6e185e842
commit
91e7db4754
30
.drone.yml
Normal file
30
.drone.yml
Normal file
@ -0,0 +1,30 @@
|
||||
pipeline:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
repo: registry.gitlab.com/thallian/docker-alpine-s6
|
||||
registry: registry.gitlab.com
|
||||
autotag: true
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
- latest
|
||||
trigger:
|
||||
image: plugins/downstream
|
||||
server: https://ci.vanwa.ch
|
||||
fork: true
|
||||
repositories:
|
||||
- docker/confd-env
|
||||
- docker/letsencrypt
|
||||
- docker/drone-agent
|
||||
- docker/drone-server
|
||||
- docker/safari-bowl
|
||||
- docker/openssh
|
||||
- docker/yacy
|
||||
- docker/sound-cards
|
||||
- docker/caddy
|
||||
secrets: [ downstream_token ]
|
||||
notify:
|
||||
image: plugins/matrix
|
||||
secrets: [ matrix_username, matrix_password, matrix_homeserver, matrix_roomid ]
|
||||
|
@ -1,10 +0,0 @@
|
||||
build:
|
||||
image: docker:latest
|
||||
services:
|
||||
- docker:dind
|
||||
stage: build
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
- docker build --pull --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
Loading…
Reference in New Issue
Block a user