Skip to content

Commit 010df3e

Browse files
chore: update repo semaphore task
1 parent 3e47167 commit 010df3e

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common
2+
# template and configurations in service.yml.
3+
# Any modifications made to ths file will be overwritten by the generated content in nightly runs.
4+
# For more information, please refer to the page:
5+
# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI
6+
version: v1.0
7+
name: build-test-release
8+
agent:
9+
machine:
10+
type: s1-prod-ubuntu20-04-amd64-1
11+
12+
fail_fast:
13+
cancel:
14+
when: "true"
15+
16+
execution_time_limit:
17+
hours: 1
18+
19+
queue:
20+
- when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.[0-9]+'"
21+
processing: parallel
22+
23+
global_job_config:
24+
prologue:
25+
commands:
26+
- checkout
27+
- . vault-setup
28+
# Semaphore does not accept empty values for parameters.
29+
- if [[ "$CONFLUENT_VERSION" = "NONE" ]]; then echo "Must specify CONFLUENT_VERSION" && exit 1; fi
30+
- if [[ "$IMAGE_REVISION" = "NONE" ]]; then echo "Must specify IMAGE_REVISION" && exit 1; fi
31+
- if [[ "$UPDATE_LATEST_TAG" = "NONE" ]]; then unset UPDATE_LATEST_TAG; fi
32+
- if [[ "$PACKAGING_BUILD_NUMBER" = "NONE" ]]; then unset PACKAGING_BUILD_NUMBER; fi
33+
- if [[ "$PROMOTE_OS_TYPE" = "NONE" ]]; then echo "Must specify PROMOTE_OS_TYPE" && exit 1; fi
34+
- >-
35+
echo """
36+
Parameters:
37+
==========================
38+
CONFLUENT_VERSION: $CONFLUENT_VERSION
39+
IMAGE_REVISION: $IMAGE_REVISION
40+
UPDATE_LATEST_TAG: $UPDATE_LATEST_TAG
41+
PACKAGING_BUILD_NUMBER: $PACKAGING_BUILD_NUMBER
42+
PROMOTE_OS_TYPE: $PROMOTE_OS_TYPE
43+
"""
44+
- export BRANCH_TAG=$(echo $SEMAPHORE_GIT_BRANCH | tr / -)
45+
- export DOCKER_PROD_REGISTRY="519856050701.dkr.ecr.us-west-2.amazonaws.com/docker/prod/"
46+
- export PROMOTED_TAG_PREFIX="$CONFLUENT_VERSION-$IMAGE_REVISION"
47+
- if [[ ! "$PACKAGING_BUILD_NUMBER" ]]; then export $PACKAGING_BUILD_NUMBER="latest"; fi
48+
- docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY
49+
- export AMD_ARCH=.amd64
50+
51+
blocks:
52+
- name: Promote AMD
53+
dependencies: []
54+
task:
55+
jobs:
56+
- name: Create Manifest
57+
dependencies: ["Promote AMD"]
58+
task:
59+
jobs:

0 commit comments

Comments
 (0)