feat: Generate new image from Drone

This commit is contained in:
Simon 2020-03-21 09:25:13 +01:00
parent 783cb11adc
commit b44c483150
3 changed files with 25 additions and 17 deletions

View File

@ -1,3 +1,13 @@
---
kind: secret
name: REGISTRY_PASSWORD
data: KfwWUQN54AA9BJakPJPagNNAS60amR1Iknerx0jESiupz+W+zn7EoEo4WMmXJVu043AxPcCbGlFN+KTmt8eyAOyXqWK3zMUoBXHYaPQa
---
kind: secret
name: REGISTRY_USER
data: DbrlPJuIlZPS9A/GYlSP0Og/SFJY8flEgEFrebtCa/AnOg==
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -14,13 +24,25 @@ steps:
- git submodule update --init - git submodule update --init
- (cd themes/hugo-theme-lowtech && npm i) - (cd themes/hugo-theme-lowtech && npm i)
- npm run build - npm run build
- docker version
when: when:
branch: branch:
- master - master
event: event:
- push - push
- name: docker
image: plugins/docker
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
repo: registry.lamelio.fr/kosssi/histoiredunpied
registry: registry.lamelio.fr
auto_tag: true
tags:
- latest
- name: logs - name: logs
image: node:12.16.1 image: node:12.16.1
commands: commands:
@ -30,17 +52,3 @@ steps:
- cron - cron
cron: cron:
- nightly - nightly
---
kind: pipeline
type: exec
name: test
platform:
os: linux
arch: arm
steps:
- name: greeting
commands:
- echo hello world

View File

@ -1,4 +1,4 @@
FROM kosssi/nginx-lowtech:0.0.2 FROM registry.lamelio.fr/kosssi/nginx-lowtech:0.0.2
# Copie des sources du site # Copie des sources du site
COPY public /usr/share/nginx/html COPY public /usr/share/nginx/html

View File

@ -7,7 +7,7 @@ volumes:
services: services:
histoiredunpied: histoiredunpied:
container_name: ${NAME} container_name: ${NAME}
image: mattermost.lamelio.fr/kosssi/histoiredunpied image: registry.lamelio.fr/kosssi/histoiredunpied
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
volumes: volumes: