feat: Generate new image from Drone
This commit is contained in:
parent
783cb11adc
commit
b44c483150
38
.drone.yml
38
.drone.yml
|
@ -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
|
||||
type: docker
|
||||
|
@ -14,13 +24,25 @@ steps:
|
|||
- git submodule update --init
|
||||
- (cd themes/hugo-theme-lowtech && npm i)
|
||||
- npm run build
|
||||
- docker version
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- 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
|
||||
image: node:12.16.1
|
||||
commands:
|
||||
|
@ -30,17 +52,3 @@ steps:
|
|||
- cron
|
||||
cron:
|
||||
- nightly
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: test
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: greeting
|
||||
commands:
|
||||
- echo hello world
|
||||
|
|
|
@ -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
|
||||
COPY public /usr/share/nginx/html
|
||||
|
|
|
@ -7,7 +7,7 @@ volumes:
|
|||
services:
|
||||
histoiredunpied:
|
||||
container_name: ${NAME}
|
||||
image: mattermost.lamelio.fr/kosssi/histoiredunpied
|
||||
image: registry.lamelio.fr/kosssi/histoiredunpied
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
volumes:
|
||||
|
|
Loading…
Reference in New Issue