Try migrating to Woodpecker
This commit is contained in:
parent
1b93443b20
commit
92e25fe950
@ -1,34 +1,36 @@
|
|||||||
---
|
---
|
||||||
# ----------------------------------------------
|
when:
|
||||||
# -- Build the site and push it to the registry
|
|
||||||
# ----------------------------------------------
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: Build the clappr
|
|
||||||
|
|
||||||
environment:
|
|
||||||
GIT_TAG: 0.6.0
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build the script
|
build:
|
||||||
image: node
|
image: node
|
||||||
|
name: Build the script
|
||||||
commands:
|
commands:
|
||||||
- git clone https://github.com/clappr/clappr.git clappr
|
- git clone https://github.com/clappr/clappr.git clappr
|
||||||
- cd clappr
|
- cd clappr
|
||||||
- git checkout $GIT_TAG
|
- git checkout $GIT_TAG
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
backend_options:
|
||||||
- name: Upload the script
|
kubernetes:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 500Mi
|
||||||
|
cpu: 200m
|
||||||
|
limits:
|
||||||
|
memory: 1000Mi
|
||||||
|
cpu: 1000m
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
upload:
|
||||||
|
name: Upload the script
|
||||||
image: rclone/rclone:latest
|
image: rclone/rclone:latest
|
||||||
environment:
|
environment:
|
||||||
RCLONE_CONFIG_CONTENT:
|
|
||||||
from_secret: RCLONE_CONFIG_CONTENT_PRIVATE
|
|
||||||
RCLONE_CONFIG: /tmp/rclone.conf
|
RCLONE_CONFIG: /tmp/rclone.conf
|
||||||
|
secrets:
|
||||||
|
- rclone_config_content
|
||||||
commands:
|
commands:
|
||||||
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
||||||
- apk update
|
- apk update
|
Loading…
Reference in New Issue
Block a user