Update drone config to 1.x
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build encountered an error
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build encountered an error
				
			This commit is contained in:
		
							
								
								
									
										69
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										69
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,32 +1,51 @@
 | 
				
			|||||||
pipeline:
 | 
					---
 | 
				
			||||||
  build:
 | 
					kind: pipeline
 | 
				
			||||||
    image: spritsail/docker-build
 | 
					name: build-test-publish
 | 
				
			||||||
    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
					
 | 
				
			||||||
 | 
					platform:
 | 
				
			||||||
 | 
					  os: linux
 | 
				
			||||||
 | 
					  arch: amd64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: build
 | 
				
			||||||
 | 
					  pull: always
 | 
				
			||||||
 | 
					  image: spritsail/docker-build
 | 
				
			||||||
 | 
					  settings:
 | 
				
			||||||
 | 
					    use_cache: true
 | 
				
			||||||
    repo: busybox-dev
 | 
					    repo: busybox-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:
 | 
					- name: test
 | 
				
			||||||
    image: docker
 | 
					  image: busybox-dev
 | 
				
			||||||
    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
					  commands:
 | 
				
			||||||
    commands:
 | 
					  - set -ex
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'true'
 | 
					  - ldconfig -p
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'test -f /lib/libc-*.so'
 | 
					  - "test -f /lib/libc-*.so"
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'ldconfig -p'
 | 
					  - nslookup cloudflare.com
 | 
				
			||||||
      - docker run --rm busybox-dev /bin/sh -xec 'nslookup google.com'
 | 
					  - "test $(date +%Z) = UTC"
 | 
				
			||||||
      - test "$(docker run --rm busybox-dev /bin/sh -xec 'date +%Z')" = 'UTC'
 | 
					  - test $(echo This is a test string | md5sum | cut -f1 -d\ | tee /dev/stderr) = b584c39f97dfe71ebceea3fdb860ed6c
 | 
				
			||||||
      - test "$(docker run --rm busybox-dev /bin/sh -xec 'echo This is a test string | md5sum | cut -f1 -d\ ' | tee /dev/stderr)" = 'b584c39f97dfe71ebceea3fdb860ed6c'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish:
 | 
					- name: publish
 | 
				
			||||||
    image: spritsail/docker-publish
 | 
					  pull: always
 | 
				
			||||||
    when: { branch: [ master ], event: [ push, tag, deployment ] }
 | 
					  image: spritsail/docker-publish
 | 
				
			||||||
    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
 | 
					  settings:
 | 
				
			||||||
    secrets: [ docker_username, docker_password, microbadger_token ]
 | 
					 | 
				
			||||||
    from: busybox-dev
 | 
					    from: busybox-dev
 | 
				
			||||||
    repo: spritsail/busybox
 | 
					    repo: spritsail/busybox
 | 
				
			||||||
    tags:
 | 
					    tags:
 | 
				
			||||||
      - 'latest'
 | 
					    - latest
 | 
				
			||||||
      - '%label io.spritsail.version.busybox'
 | 
					    - "%label io.spritsail.version.busybox"
 | 
				
			||||||
 | 
					  environment:
 | 
				
			||||||
 | 
					    DOCKER_PASSWORD:
 | 
				
			||||||
 | 
					      from_secret: docker_password
 | 
				
			||||||
 | 
					    DOCKER_USERNAME:
 | 
				
			||||||
 | 
					      from_secret: docker_username
 | 
				
			||||||
 | 
					  when:
 | 
				
			||||||
 | 
					    branch:
 | 
				
			||||||
 | 
					    - master
 | 
				
			||||||
 | 
					    event:
 | 
				
			||||||
 | 
					    - promote
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  notify:
 | 
					---
 | 
				
			||||||
    image: spritsail/notify
 | 
					kind: signature
 | 
				
			||||||
    when: { status: [ success, failure ] }
 | 
					hmac: ed993c62abb165265b5e3569eb16c4e203db7921840c35932a96962182295327
 | 
				
			||||||
    secrets: [ webhook_url, notify_token ]
 | 
					
 | 
				
			||||||
 | 
					...
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user