Compare commits
No commits in common. "fdbe761cb35cc63b305a16f3206ede03a2a1d151" and "9542d48a836c5140a9ec3aadda2f7a57f0f3d7bb" have entirely different histories.
fdbe761cb3
...
9542d48a83
2 changed files with 18 additions and 52 deletions
64
.drone.yml
64
.drone.yml
|
@ -1,59 +1,25 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: container-check
|
||||
type: docker
|
||||
name: Build
|
||||
|
||||
steps:
|
||||
- name: check-build
|
||||
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: 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}"
|
||||
- name: build
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t "nikola:${DRONE_TAG}" /drone/src/
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- container-check
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
- tag
|
|
@ -1,4 +1,4 @@
|
|||
[![Build Status](https://ci.project42.io/api/badges/elia/nikola-docker/status.svg)](https://ci.project42.io/elia/nikola-docker)
|
||||
[![Build Status](https://drone.project42.io/api/badges/Elia/nikola-docker/status.svg)](https://drone.project42.io/Elia/nikola-docker)
|
||||
|
||||
# nikola-docker
|
||||
|
||||
|
|
Loading…
Reference in a new issue