forked from Abstract-Tech/derex.runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
34 lines (32 loc) · 969 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
schedules:
- cron: "30 06 * * *"
displayName: Daily build
branches:
include:
- master
always: true
stages:
- template: azure-pipelines/build.yml
- template: azure-pipelines/test.yml
- template: azure-pipelines/push.yml
variables:
- name: DOCKER_BUILDKIT
value: "1"
- name: DOCKER_CLI_EXPERIMENTAL
value: enabled
- name: DOCKER_COMMAND
value: docker buildx build docker-definition
- name: CACHE_KEY_BASE # Increment this value to reset the images cache
value: 21
- name: CACHE_KEY_FILES
value: $(System.DefaultWorkingDirectory)/docker-definition/**/*
- name: CACHE_KEY_IMAGES
value: BASE_SEED=$(CACHE_KEY_BASE) | $(CACHE_KEY_FILES)
- name: CACHE_KEY_IMAGES_FALLBACK
value: BASE_SEED=$(CACHE_KEY_BASE)
- name: SENTINEL_CACHE_PATH
value: $(Pipeline.Workspace)/sentinel_cache
- name: IMAGE_CACHE_PATH
value: $(Pipeline.Workspace)/image_cache
- name: needs_build
value: "false"