Mise à jour avec la nouvelle infra weko
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d101ca8d0f
commit
1b1cfe9317
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything
|
||||
**
|
||||
|
||||
!public
|
20
.drone.yml
20
.drone.yml
|
@ -1,20 +1,20 @@
|
|||
---
|
||||
# drone encrypt lowtech/lowtechweb $REGISTRY_PASSWORD
|
||||
# drone encrypt lowtechweb/lowtechweb $REGISTRY_PASSWORD
|
||||
kind: secret
|
||||
name: REGISTRY_PASSWORD
|
||||
data: PcAbh064ltmdAbnvm9q8R8Rx2c6nN3csix0zlPOHslgjXgs/Oih03slIaIl7dmvSYtHTTbxKKk6Mx9DFUQdH+qXGtWXagorLa2ZMR9wt
|
||||
data: A0DZ8iVYjD2XuzM2PtVOYPVCTguvfdEiKi5WmoUXK+CXYCPLLhGoLvYQ2s461IZgjl8wYWG8/6dUxPZSAHwH3j+dfPOzV6doMVKSXnfs
|
||||
|
||||
---
|
||||
# drone encrypt lowtech/lowtechweb $REGISTRY_USER
|
||||
# drone encrypt lowtechweb/lowtechweb $REGISTRY_USER
|
||||
kind: secret
|
||||
name: REGISTRY_USER
|
||||
data: y5RMoikR/kNvfnbVRaUMBQNSW53bg7QEEqb/vWrV/2JoVw==
|
||||
data: u5v7yp2Vs4wlGQJDgNacH7YMqDZrJOCvUZb+JC2BZCiGuQ==
|
||||
|
||||
---
|
||||
# drone encrypt lowtech/lowtechweb "{\"auths\":{\"https://registry.lamelio.fr\":{\"auth\":\"$(echo -n "$REGISTRY_USER:$REGISTRY_PASSWORD" | base64)\",\"email\":\"$REGISTRY_USER\"}}}"
|
||||
# drone encrypt lowtechweb/lowtechweb "{\"auths\":{\"https://registry.weko.io\":{\"auth\":\"$(echo -n "$REGISTRY_USER:$REGISTRY_PASSWORD" | base64)\",\"email\":\"$REGISTRY_USER\"}}}"
|
||||
kind: secret
|
||||
name: REGISTRY_CONFIG
|
||||
data: YBvxqLCtXGt2lweeODMwEJe9x8Bn+ZH5tYnEdGPADxSUbl2EtOyjVJbudHQ1oiztIEKOJhG5e5PTp7kgnp5rqTndjQSFb9EIdFRD+VV5qzeBlBBeW3PL+j1e15FPUocptEBI6jmLeuXFlWuaOmHnfbOoQsSoD7eakde6U+Tps+NvHU/37kl05v2O+30IxhcPeIIk2RvaBnNP+K7Nb0XZqKMmPNmJ3Qu/SijJkqRq
|
||||
data: yulyvyCbBlvOoDgDlGL48wpAMNDr7/XwW2kPiOzFuXubzkcX8tjqQUT2I0Jnzm9ZxhUK5Yj0a510wxQHfSx4fT3pHRq/1rXl/c9VNfxaFZcWn8Dcn54MHo3lOOGbS3bAULTiftClsVmW6TglRtjwisLM4uc65EmQvMc/BTSsfJ8Q/12cbz8kUVVIOvIn/0Q4BQ1q2fFfcfEh2P4bwFYLvOf99q58rQXFP8Nk
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
@ -23,11 +23,11 @@ name: default
|
|||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: registry.lamelio.fr/hugo
|
||||
image: registry.weko.io/hugo
|
||||
commands:
|
||||
- ./run install
|
||||
- ./run build staging
|
||||
|
@ -42,8 +42,8 @@ steps:
|
|||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
repo: registry.lamelio.fr/lowtechweb
|
||||
registry: registry.lamelio.fr
|
||||
repo: registry.weko.io/lowtechweb
|
||||
registry: registry.weko.io
|
||||
auto_tag: true
|
||||
tags:
|
||||
- latest
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[submodule "themes/hugo-theme-lowtech"]
|
||||
path = themes/hugo-theme-lowtech
|
||||
url = https://gitea.lamelio.fr/kosssi/hugo-theme-lowtech.git
|
||||
url = https://git.weko.io/kosssi/hugo-theme-lowtech.git
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM registry.lamelio.fr/nginx-lowtech:0.0.5
|
||||
FROM registry.weko.io/nginx-lowtech:0.0.5
|
||||
|
||||
# Copie des sources du site
|
||||
COPY public /usr/share/nginx/html
|
||||
|
|
|
@ -9,7 +9,7 @@ volumes:
|
|||
services:
|
||||
lowtechweb-autopush:
|
||||
container_name: lowtechweb-autopush
|
||||
image: registry.lamelio.fr/autopush
|
||||
image: registry.weko.io/autopush
|
||||
restart: always
|
||||
depends_on:
|
||||
- lowtechweb
|
||||
|
@ -24,7 +24,7 @@ services:
|
|||
|
||||
lowtechweb-logs:
|
||||
container_name: lowtechweb-logs
|
||||
image: registry.lamelio.fr/goaccess
|
||||
image: registry.weko.io/goaccess
|
||||
restart: always
|
||||
depends_on:
|
||||
- lowtechweb-autopush
|
||||
|
@ -36,7 +36,7 @@ services:
|
|||
|
||||
lowtechweb:
|
||||
container_name: ${NAME}
|
||||
image: registry.lamelio.fr/lowtechweb
|
||||
image: registry.weko.io/lowtechweb
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
|
|
4
run
4
run
|
@ -77,8 +77,8 @@ if [ $# -ge 1 ]; then
|
|||
echo "🐳 Création de l'image Docker"
|
||||
echo
|
||||
docker build . -t kosssi/$PROJECT
|
||||
docker tag kosssi/$PROJECT registry.lamelio.fr/$PROJECT
|
||||
docker push registry.lamelio.fr/$PROJECT
|
||||
docker tag kosssi/$PROJECT registry.weko.io/$PROJECT
|
||||
docker push registry.weko.io/$PROJECT
|
||||
elif [ $1 == "deploy" ]; then
|
||||
echo "🚀 Déploiement avec docker-compose"
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue