"superbench/vscode:/vscode.git/clone" did not exist on "3d0fde1292dfeaaab4197b409ce2a781a7085fe2"
Commit b7ced4e4 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

feat: trigger docker build after release

parent 7a7d1931
...@@ -57,3 +57,14 @@ jobs: ...@@ -57,3 +57,14 @@ jobs:
path: . path: .
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Docker build workflow
uses: actions/github-script@v7
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docker-build.yaml',
ref: 'v${{ steps.get_version.outputs.version }}',
})
...@@ -3,6 +3,7 @@ name: Create and publish a Docker image ...@@ -3,6 +3,7 @@ name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`. # Configures this workflow to run every time a change is pushed to the branch called `release`.
on: on:
workflow_dispatch:
push: push:
branches: branches:
- main - main
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment