From 57e443c0d53b13f7cd0436e55d0c4082c0bc5f70 Mon Sep 17 00:00:00 2001 From: reid Date: Fri, 18 Oct 2024 19:37:17 -0500 Subject: [PATCH 1/2] add cross-repo build jobs --- .../build-ylem-container-prod-env.yaml | 22 +++++++++++++++++++ .../build-ylem-container-test-env.yaml | 20 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/build-ylem-container-prod-env.yaml create mode 100644 .github/workflows/build-ylem-container-test-env.yaml diff --git a/.github/workflows/build-ylem-container-prod-env.yaml b/.github/workflows/build-ylem-container-prod-env.yaml new file mode 100644 index 0000000..e8c9f14 --- /dev/null +++ b/.github/workflows/build-ylem-container-prod-env.yaml @@ -0,0 +1,22 @@ +name: Trigger internal azimuth-cli prod build + +on: + push: + branches: + - solaris + +jobs: + trigger-prod: + runs-on: ubuntu-latest + steps: + - name: Send repository dispatch to ylem (prod) + uses: actions/github-script@v6 + with: + script: | + const { GITHUB_TOKEN } = process.env; + await github.repos.createDispatchEvent({ + owner: 'tloncorp', + repo: 'ylem', + event_type: 'prod-breach-ship-docker', + client_payload: { branch: 'main' } + }); diff --git a/.github/workflows/build-ylem-container-test-env.yaml b/.github/workflows/build-ylem-container-test-env.yaml new file mode 100644 index 0000000..f73a7e0 --- /dev/null +++ b/.github/workflows/build-ylem-container-test-env.yaml @@ -0,0 +1,20 @@ +name: Trigger internal azimuth-cli prod build + +on: + workflow_dispatch: + +jobs: + trigger-test: + runs-on: ubuntu-latest + steps: + - name: Send repository dispatch to ylem (test) + uses: actions/github-script@v6 + with: + script: | + const { GITHUB_TOKEN } = process.env; + await github.repos.createDispatchEvent({ + owner: 'tloncorp', + repo: 'ylem', + event_type: 'test-breach-ship-docker', + client_payload: { branch: 'main' } + }); From 29e0a050420dce1705f713a0d40a5cefb8f04d7e Mon Sep 17 00:00:00 2001 From: reid Date: Fri, 18 Oct 2024 19:39:53 -0500 Subject: [PATCH 2/2] add workflow dispatch --- .github/workflows/build-ylem-container-prod-env.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-ylem-container-prod-env.yaml b/.github/workflows/build-ylem-container-prod-env.yaml index e8c9f14..f89649d 100644 --- a/.github/workflows/build-ylem-container-prod-env.yaml +++ b/.github/workflows/build-ylem-container-prod-env.yaml @@ -1,6 +1,7 @@ name: Trigger internal azimuth-cli prod build on: + workflow_dispatch: push: branches: - solaris