Add .woodpecker.yml
This commit is contained in:
		
							parent
							
								
									f846c83bc3
								
							
						
					
					
						commit
						8d4545448d
					
				| 
						 | 
				
			
			@ -0,0 +1,44 @@
 | 
			
		|||
# woodpecker.yml
 | 
			
		||||
labels:
 | 
			
		||||
  hostname: "macmini7"
 | 
			
		||||
clone:
 | 
			
		||||
  git:
 | 
			
		||||
    image: woodpeckerci/plugin-git
 | 
			
		||||
    settings:
 | 
			
		||||
      partial: false
 | 
			
		||||
      depth: 1
 | 
			
		||||
steps:
 | 
			
		||||
  # run-smoke-tests:
 | 
			
		||||
  #   name: run-playwright-tests
 | 
			
		||||
  #   image: git.nixc.us/colin/playwright:latest
 | 
			
		||||
  #   secrets: [REGISTRY_USER, REGISTRY_PASSWORD]
 | 
			
		||||
  #   when:
 | 
			
		||||
  #     - branch: main
 | 
			
		||||
  #     - path:
 | 
			
		||||
  #         include: [ 'stack.yml', 'docker-compose.yml', 'Dockerfile', '.woodpecker.yml', '*.tests.ts' ]
 | 
			
		||||
  deploy-config:
 | 
			
		||||
    name: deploy-config
 | 
			
		||||
    when:
 | 
			
		||||
      - path:
 | 
			
		||||
          include: [ 'stack.yml', 'Dockerfile', '.woodpecker.yml', 'README.md']
 | 
			
		||||
    image: woodpeckerci/plugin-docker-buildx
 | 
			
		||||
    # secrets: [REGISTRY_USER, REGISTRY_PASSWORD]
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
			
		||||
    commands:
 | 
			
		||||
    #   - echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us
 | 
			
		||||
      - docker stack deploy --with-registry-auth -c ./stack.yml $${CI_REPO_NAME}
 | 
			
		||||
  # wait:
 | 
			
		||||
  #   # image: alpine
 | 
			
		||||
  #   image: woodpeckerci/plugin-git
 | 
			
		||||
  #   commands:
 | 
			
		||||
  #     - echo "Waiting for five minutes"
 | 
			
		||||
  #     - sleep 300  # Waits for five minutes
 | 
			
		||||
  # run-post-deploy-smoke-tests:
 | 
			
		||||
  #   name: run-post-deploy-smoke-tests
 | 
			
		||||
  #   image: git.nixc.us/colin/playwright:latest
 | 
			
		||||
  #   secrets: [REGISTRY_USER, REGISTRY_PASSWORD]
 | 
			
		||||
  #   when:
 | 
			
		||||
  #     - branch: main
 | 
			
		||||
  #     - path:
 | 
			
		||||
  #         include: [ 'stack.yml', 'docker-compose.yml', 'Dockerfile', '.woodpecker.yml', '*.tests.ts' ]
 | 
			
		||||
		Loading…
	
		Reference in New Issue