Skip to content

Commit

Permalink
chore: update repo semaphore config
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentSemaphore committed May 9, 2024
1 parent c4e2a16 commit feaccc0
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ global_job_config:
prologue:
commands:
- checkout
- git submodule update --init --recursive
- cd deps/librdkafka
- git fetch origin
- cd ../../
- cache clear
- make show-args
- . vault-setup
- . vault-sem-get-secret ci-reporting
- . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include
- make init-ci
epilogue:
always:
commands:
- make epilogue-ci

blocks:
- name: "Linux amd64 (musl): Build and test"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand All @@ -47,7 +51,7 @@ blocks:
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh

- name: "Linux arm64 (musl): Build and test"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand All @@ -58,10 +62,10 @@ blocks:
jobs:
- name: "Build from source and test for musl"
commands:
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh

- name: "Linux arm64: Build and test"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand All @@ -85,7 +89,7 @@ blocks:
- make test

- name: "Linux amd64: Build, test, lint"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand All @@ -108,7 +112,7 @@ blocks:
- npx eslint lib/kafkajs

- name: "Linux amd64: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -155,7 +159,7 @@ blocks:
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"

- name: "Linux arm64: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -202,7 +206,7 @@ blocks:
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"

- name: "Linux amd64 musl: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -243,7 +247,7 @@ blocks:
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"

- name: "Linux arm64 musl: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -284,7 +288,7 @@ blocks:
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"

- name: "macOS arm64/m1: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -328,7 +332,7 @@ blocks:
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"

- name: "Windows x64: Release"
dependencies: [ ]
dependencies: []
run:
when: "tag =~ '^v[0-9]\\.'"
task:
Expand Down Expand Up @@ -422,4 +426,4 @@ blocks:
commands:
- artifact pull workflow releases
- tar -czvf releases.${SEMAPHORE_GIT_TAG_NAME}.tar.gz releases
- artifact push project "releases.${SEMAPHORE_GIT_TAG_NAME}.tar.gz" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/releases.${SEMAPHORE_GIT_TAG_NAME}.tar.gz"
- artifact push project "releases.${SEMAPHORE_GIT_TAG_NAME}.tar.gz" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/releases.${SEMAPHORE_GIT_TAG_NAME}.tar.gz"

0 comments on commit feaccc0

Please # to comment.