|
|
@@ -70,6 +70,7 @@ jobs:
|
|
|
id: capture-last-tag
|
|
|
run: |
|
|
|
last_tag=$(cat tags.txt | awk '{print $NF}')
|
|
|
+ echo "last_tag=$last_tag"
|
|
|
echo "last_tag=$last_tag" >> $GITHUB_OUTPUT
|
|
|
- name: Upload Docker image as artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
|
@@ -80,6 +81,7 @@ jobs:
|
|
|
|
|
|
# Push the OpenHands and sandbox Docker images to the ghcr.io repository
|
|
|
ghcr_push:
|
|
|
+ name: Push App Image
|
|
|
runs-on: ubuntu-latest
|
|
|
needs: [ghcr_build]
|
|
|
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main')
|
|
|
@@ -109,7 +111,7 @@ jobs:
|
|
|
path: /tmp
|
|
|
- name: Load images and push to registry
|
|
|
run: |
|
|
|
- mv /tmp/${{ matrix.platform }}/${{ matrix.image }}_${{ matrix.last_tag }}_${{ matrix.platform }}.tar .
|
|
|
+ mv /tmp/${{ matrix.image }}_${{ matrix.last_tag }}_${{ matrix.platform }}.tar .
|
|
|
loaded_image=$(docker load -i ${{ matrix.image }}_${{ matrix.last_tag }}_${{ matrix.platform }}.tar | grep "Loaded image:" | head -n 1 | awk '{print $3}')
|
|
|
echo "loaded image = $loaded_image"
|
|
|
tags=$(echo ${tags} | tr ' ' '\n')
|
|
|
@@ -120,8 +122,9 @@ jobs:
|
|
|
docker tag $loaded_image $image_name:${tag}_${{ matrix.platform }}
|
|
|
docker push $image_name:${tag}_${{ matrix.platform }}
|
|
|
done
|
|
|
- # Creates and pushes the OpenHands and sandbox Docker image manifests
|
|
|
+ # Creates and pushes the OpenHands Docker image manifests
|
|
|
create_manifest:
|
|
|
+ name: Create Manifest
|
|
|
runs-on: ubuntu-latest
|
|
|
needs: [ghcr_build, ghcr_push]
|
|
|
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main')
|