Skip to content

Commit 625c058

Browse files
Ethan-Arrowoodaduh95
authored andcommitted
build: trigger devcontainer build from daily
Sends a node-daily event to the nodejs/devcontainer repo to trigger a new devcontainer build upon a successful daily build. It shares the specific associated commit so the exact devcontainer is built. Requires: nodejs/devcontainer#31 Signed-off-by: Ethan Arrowood <ethan@arrowood.dev> PR-URL: #67153 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent 8ec2579 commit 625c058

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/daily.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,18 @@ jobs:
2828
sudo apt-get update && sudo apt-get install ninja-build -y
2929
./configure --enable-lto --ninja
3030
ninja -C out/Release
31+
32+
# Once main builds, tell nodejs/devcontainer to publish new nightly images from the same commit.
33+
# Its build workflow listens for this `node-daily` event.
34+
trigger-devcontainer:
35+
needs: build-lto
36+
if: github.repository == 'nodejs/node' && github.ref == 'refs/heads/main'
37+
runs-on: ubuntu-slim
38+
steps:
39+
- name: Dispatch a nodejs/devcontainer build
40+
run: |
41+
gh api repos/nodejs/devcontainer/dispatches \
42+
-f event_type=node-daily \
43+
-f "client_payload[sha]=$GITHUB_SHA"
44+
env:
45+
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}

0 commit comments

Comments
 (0)