Skip to content

Commit

Permalink
chore: update repo semaphore config
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentJenkins committed Apr 20, 2023
1 parent 64c6582 commit 4f6d83d
Showing 1 changed file with 42 additions and 8 deletions.
50 changes: 42 additions & 8 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,45 @@
version: v1.0
name: 'confluent-kafka-go build pipeline'
name: 'build-test-release'
agent:
machine:
type: s1-prod-ubuntu20-04-amd64-1

global_job_config:
env_vars:
- name: LIBRDKAFKA_VERSION
value: v2.1.0
secrets:
- name: vault_sem2_approle
prologue:
commands:
- chmod 400 ~/.ssh/id_rsa
- sem-version go 1.18
- export "GOPATH=$(go env GOPATH)"
- export "SEMAPHORE_GIT_DIR=${GOPATH}/src/github.com/confluentinc/${SEMAPHORE_PROJECT_NAME}"
- export "PATH=${GOPATH}/bin:${PATH}"
- mkdir -vp "${SEMAPHORE_GIT_DIR}" "${GOPATH}/bin"
- git config --global url."git@github.com:".insteadOf "https://github.com/"
- checkout
- make install-vault
- . mk-include/bin/vault-setup
- . vault-sem-get-secret aws_credentials
- . vault-sem-get-secret gitconfig
- . vault-sem-get-secret ssh_id_rsa
- . vault-sem-get-secret ssh_config
- . vault-sem-get-secret netrc
- . vault-sem-get-secret semaphore-secrets-global
- . vault-sem-get-secret maven-settings
- . vault-sem-get-secret cpd_gcloud
- . vault-sem-get-secret ci-reporting
- . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include
- . vault-sem-get-secret dockerhub-semaphore-cred-ro
- exec &> >(tee -a build.log)
- make init-ci
epilogue:
always:
commands:
- make epilogue-ci

blocks:
- name: "Go 1.19 OSX bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand All @@ -39,7 +66,7 @@ blocks:
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 linux bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand Down Expand Up @@ -70,7 +97,7 @@ blocks:
value: dynamic
commands_file: semaphore_integration_commands.sh
- name: "Go 1.19 linux arm64 bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand Down Expand Up @@ -101,7 +128,7 @@ blocks:
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 Windows bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand Down Expand Up @@ -130,3 +157,10 @@ blocks:
- name: MSYSTEM
value: UCRT64
commands_file: semaphore_commands.ps1
auto_cancel:
running:
when: "branch != 'master'"

execution_time_limit:
hours: 1

0 comments on commit 4f6d83d

Please sign in to comment.