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