Mise à jour de '.drone.yml'

This commit is contained in:
gregandev 2022-12-19 12:56:27 +01:00
parent ae1997eb6d
commit 61ee278bbd

View File

@ -26,17 +26,20 @@ steps:
- apk add libc6-compat libstdc++ - apk add libc6-compat libstdc++
- /bin/hugo - /bin/hugo
- name: push - name: build-and-push-image
image: plugins/docker image: plugins/docker
volumes:
- name: hugosource
path: "/src"
- name: dockersock
path: "/var/run/docker.sock" # Mandatory
settings: settings:
registry: dockerregistry.legaragenumerique.fr username: LeGarage
repo: hugo-site
username:
from_secret: REGISTRY_USER
password: password:
from_secret: REGISTRY_PASSWORD from_secret: REGISTRY_PASSWORD # Configure the secret in the Drone repository setting
tags: repo: <dockerhub user>/<repo>
- latest tags: 0.0.1
dockerfile: ./build/Dockerfile # Where the Dockerfile is located in your git repository
trigger: trigger:
branch: branch: