mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-26 00:51:11 +02:00
chore: optimize the build for pull requests and tags (#546)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
parent
3d7a4fd657
commit
9b37f78eb9
48
.drone.yml
48
.drone.yml
@ -24,7 +24,7 @@ steps:
|
|||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: autonomy/build-container:latest
|
image: autonomy/build-container:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
||||||
commands:
|
commands:
|
||||||
@ -37,7 +37,7 @@ steps:
|
|||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: autonomy/build-container:latest
|
image: autonomy/build-container:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
||||||
commands:
|
commands:
|
||||||
@ -60,7 +60,7 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: autonomy/build-container:latest
|
image: autonomy/build-container:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
||||||
commands:
|
commands:
|
||||||
@ -70,10 +70,31 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: autonomy/build-container:latest
|
||||||
|
privileged: true
|
||||||
|
pull: always
|
||||||
|
environment:
|
||||||
|
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
||||||
|
commands:
|
||||||
|
- make clean
|
||||||
|
- make release
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
depends_on:
|
||||||
|
- fetch
|
||||||
|
|
||||||
- name: basic-integration
|
- name: basic-integration
|
||||||
image: autonomy/build-container:latest
|
image: autonomy/build-container:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
||||||
commands:
|
commands:
|
||||||
@ -84,6 +105,8 @@ steps:
|
|||||||
path: /var/run
|
path: /var/run
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
when:
|
||||||
|
event: pull_request
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
image: autonomy/build-container:latest
|
image: autonomy/build-container:latest
|
||||||
@ -105,22 +128,7 @@ steps:
|
|||||||
- pull_request
|
- pull_request
|
||||||
depends_on:
|
depends_on:
|
||||||
- basic-integration
|
- basic-integration
|
||||||
|
- release
|
||||||
- name: release
|
|
||||||
image: autonomy/build-container:latest
|
|
||||||
pull: always
|
|
||||||
environment:
|
|
||||||
BUILDKIT_HOST: tcp://buildkitd.ci.svc:1234
|
|
||||||
commands:
|
|
||||||
- make clean
|
|
||||||
- make release
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
depends_on:
|
|
||||||
- basic-integration
|
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user