feat: Add a script for pushing images to the bucket

build: Update the CI

fix: Update the sctipt so it creates correct dirs
This commit is contained in:
Nikolai Rodionov
2023-03-29 18:13:55 +02:00
parent 80cb94f767
commit 4e1fa24a21
6 changed files with 73 additions and 32 deletions

View File

@ -80,34 +80,14 @@ steps:
- name: Sync pictures from lfs to Minio
image: rclone/rclone:latest
when:
branch:
exclude:
- main
environment:
RCLONE_CONFIG_CONTENT:
from_secret: RCLONE_CONFIG_CONTENT_PRIVATE
RCLONE_CONFIG: /tmp/rclone.conf
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- apk update
- apk add git make
- make upload_static
- name: Sync pictures to the main Minio bucket
image: rclone/rclone:latest
when:
branch:
- main
environment:
RCLONE_CONFIG_CONTENT:
from_secret: RCLONE_CONFIG_CONTENT_PRIVATE
RCLONE_CONFIG: /tmp/rclone.conf
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- apk update
- apk add git make
- make sync_static_with_main
- apk update && apk add git perl
- ./scripts/upload-media.pl
- name: Deploy a preview ApplicationSet
image: alpine/k8s:1.24.10