mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
* Test resuable workflow * fix path for reusable workflow * Fix workflow typo * fix reusable workflow * input typo * Add secrets to reusable workflow * Make token required * Fix secret indentation * Fix image with tag
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# Workflow that builds, tests and then pushes all the runtime docker images to the ghcr.io repository
|
|
name: Build, Test and Publish Runtime Image
|
|
|
|
# Only run one workflow of the same group at a time.
|
|
# There can be at most one running and one pending job in a concurrency group at any time.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
# Always run on "main"
|
|
# Always run on tags
|
|
# Always run on PRs
|
|
# Can also be triggered manually
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
inputs:
|
|
reason:
|
|
description: 'Reason for manual trigger'
|
|
required: true
|
|
default: ''
|
|
|
|
jobs:
|
|
nikolaik:
|
|
uses: ./.github/workflows/ghcr-runtime-reusable.yml
|
|
with:
|
|
base_image: 'nikolaik/python-nodejs:python3.11-nodejs22'
|
|
image_tag: nikolaik
|
|
secrets: inherit
|
|
python:
|
|
uses: ./.github/workflows/ghcr-runtime-reusable.yml
|
|
with:
|
|
base_image: 'python:3.11-bookworm'
|
|
image_tag: python
|
|
secrets: inherit
|
|
node:
|
|
uses: ./.github/workflows/ghcr-runtime-reusable.yml
|
|
with:
|
|
base_image: 'node:22-bookworm'
|
|
image_tag: node
|
|
secrets: inherit
|