scope when jobs run #12
@@ -12,8 +12,9 @@ steps:
 | 
				
			|||||||
      - apk add curl
 | 
					      - apk add curl
 | 
				
			||||||
      - docker build .
 | 
					      - docker build .
 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
      branch:
 | 
					      - event: push
 | 
				
			||||||
        exclude: ["master", "main"]
 | 
					        branch:
 | 
				
			||||||
 | 
					          exclude: ["main"]
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					      - /var/run/docker.sock:/var/run/docker.sock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -28,7 +29,8 @@ steps:
 | 
				
			|||||||
      - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
					      - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
 | 
				
			||||||
    secrets: [docker_username, docker_password, compose_token]
 | 
					    secrets: [docker_username, docker_password, compose_token]
 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
      branch:
 | 
					      - event: push
 | 
				
			||||||
        include: ["master", "main"]
 | 
					        branch:
 | 
				
			||||||
 | 
					          include: ["main"]
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					      - /var/run/docker.sock:/var/run/docker.sock
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user