Skip to content

Commit 397e5da

Browse files
committed
Add api to the pin update system
1 parent 586917f commit 397e5da

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.semaphore/semaphore.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: v1.0
22
name: API
33
execution_time_limit:
4-
minutes: 30
4+
hours: 4
55

66
agent:
77
machine:
@@ -25,6 +25,8 @@ global_job_config:
2525

2626
blocks:
2727
- name: Build
28+
execution_time_limit:
29+
minutes: 15
2830
dependencies: []
2931
task:
3032
jobs:
@@ -33,6 +35,8 @@ blocks:
3335
- make build
3436

3537
- name: Unit Tests
38+
execution_time_limit:
39+
minutes: 30
3640
dependencies: []
3741
task:
3842
jobs:
@@ -42,8 +46,24 @@ blocks:
4246

4347
- name: Static Checks
4448
dependencies: []
49+
execution_time_limit:
50+
minutes: 15
4551
task:
4652
jobs:
4753
- name: Static Checks
4854
commands:
49-
- make static-checks
55+
- make static-checks
56+
- name: Trigger pin updates
57+
execution_time_limit:
58+
minutes: 5
59+
dependencies: [ ]
60+
skip:
61+
when: "(branch != 'master') and (branch !~ '^release-v\d*\.\d*')"
62+
task:
63+
secrets:
64+
- name: semaphore-api
65+
jobs:
66+
- name: Trigger pin updates
67+
commands:
68+
- checkout
69+
- make semaphore-run-auto-pin-update-workflows

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ BINDIR ?= bin
88
BUILD_DIR ?= build
99
TOP_SRC_DIRS = pkg
1010

11+
ORGANIZATION=projectcalico
12+
SEMAPHORE_PROJECT_ID?=$(SEMAPHORE_API_PROJECT_ID)
13+
14+
# Used so semaphore can trigger the update pin pipelines in projects that have this project as a dependency.
15+
SEMAPHORE_AUTO_PIN_UPDATE_PROJECT_IDS=$(SEMAPHORE_LIBCALICO_GO_PROJECT_ID)
16+
1117
##############################################################################
1218
# Download and include Makefile.common before anything else
1319
# Additions to EXTRA_DOCKER_ARGS need to happen before the include since

0 commit comments

Comments
 (0)