Compare commits
2 commits
9542d48a83
...
fdbe761cb3
Author | SHA1 | Date | |
---|---|---|---|
fdbe761cb3 | |||
7a5b3b6c51 |
2 changed files with 52 additions and 18 deletions
66
.drone.yml
66
.drone.yml
|
@ -1,25 +1,59 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
name: container-check
|
||||||
name: Build
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: check-build
|
||||||
image: docker:dind
|
image: plugins/docker
|
||||||
volumes:
|
settings:
|
||||||
- name: docker-socket
|
registry: scm.project42.io
|
||||||
path: /var/run/docker.sock
|
dockerfile: Dockerfile
|
||||||
commands:
|
username:
|
||||||
- docker build -t "nikola:${DRONE_TAG}" /drone/src/
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
repo: scm.project42.io/elia/nikola
|
||||||
|
dry_run: true
|
||||||
|
squash: true
|
||||||
|
tags:
|
||||||
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
exclude:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: container-build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-latest
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: scm.project42.io
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
repo: scm.project42.io/elia/nikola
|
||||||
|
dry_run: false
|
||||||
|
squash: true
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- container-check
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: docker-socket
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[![Build Status](https://drone.project42.io/api/badges/Elia/nikola-docker/status.svg)](https://drone.project42.io/Elia/nikola-docker)
|
[![Build Status](https://ci.project42.io/api/badges/elia/nikola-docker/status.svg)](https://ci.project42.io/elia/nikola-docker)
|
||||||
|
|
||||||
# nikola-docker
|
# nikola-docker
|
||||||
|
|
||||||
The Nikola project dockerized for personal use.
|
The Nikola project dockerized for personal use.
|
||||||
|
|
Loading…
Reference in a new issue