mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
* add final step for matrix tests * change test names * add names * change run conditions * fix test names
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Publish Docker Image
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
inputs:
|
|
reason:
|
|
description: 'Reason for manual trigger'
|
|
required: true
|
|
default: ''
|
|
|
|
jobs:
|
|
ghcr_build_and_push:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push' || github.event.inputs.reason != ''
|
|
strategy:
|
|
matrix:
|
|
image: ["app", "evaluation", "sandbox"]
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log-in to ghcr.io
|
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Delete huge unnecessary tools folder
|
|
run: rm -rf /opt/hostedtoolcache
|
|
|
|
- name: Build and push ${{ matrix.image }}
|
|
run: |
|
|
ORG_NAME=$(echo "${{ github.repository }}" | tr '[A-Z]' '[a-z]' | cut -d '/' -f 1)
|
|
./containers/build.sh ${{ matrix.image }} $ORG_NAME --push
|
|
|
|
docker_build_success:
|
|
name: Docker Build Success
|
|
runs-on: ubuntu-latest
|
|
needs: ghcr_build_and_push
|
|
steps:
|
|
- run: echo Done!
|