-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image publishing semaphore config
- Loading branch information
1 parent
5da191e
commit 97dff2c
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: v1.0 | ||
name: Publish goldmane images | ||
agent: | ||
machine: | ||
type: f1-standard-2 | ||
os_image: ubuntu2204 | ||
|
||
execution_time_limit: | ||
minutes: 60 | ||
|
||
global_job_config: | ||
env_vars: | ||
- name: DEV_REGISTRIES | ||
value: quay.io/calico docker.io/calico | ||
secrets: | ||
- name: docker | ||
- name: quay-robot-calico+semaphoreci | ||
prologue: | ||
commands: | ||
- checkout | ||
# Semaphore is doing shallow clone on a commit without tags. | ||
# unshallow it for GIT_VERSION:=$(shell git describe --tags --dirty --always) | ||
- retry git fetch --unshallow | ||
- echo $DOCKER_TOKEN | docker login --username "$DOCKER_USER" --password-stdin | ||
- echo $QUAY_TOKEN | docker login --username "$QUAY_USER" --password-stdin quay.io | ||
- export BRANCH_NAME=$SEMAPHORE_GIT_BRANCH | ||
|
||
blocks: | ||
- name: Publish goldmane images | ||
dependencies: [] | ||
skip: | ||
when: "branch !~ '.+'" | ||
task: | ||
jobs: | ||
- name: Linux multi-arch | ||
commands: | ||
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make -C goldmane cd CONFIRM=true; fi | ||
- name: Publish goldmane multi-arch manifests | ||
dependencies: | ||
- Publish goldmane images | ||
skip: | ||
when: "branch !~ '.+'" | ||
task: | ||
jobs: | ||
- name: Linux multi-arch manifests | ||
commands: | ||
- if [ -z "${SEMAPHORE_GIT_PR_NUMBER}" ]; then make -C goldmane push-manifests-with-tag CONFIRM=true; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters