mirror of
https://github.com/allenai/olmocr.git
synced 2025-11-13 08:59:11 +00:00
Beaker push fix
This commit is contained in:
parent
5e5c31b93e
commit
08ca1544bf
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -281,14 +281,21 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
BEAKER_TOKEN: ${{ secrets.BEAKER_TOKEN }}
|
BEAKER_TOKEN: ${{ secrets.BEAKER_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Get the version without 'v' prefix
|
# Get version
|
||||||
VERSION=${GITHUB_REF#refs/tags/v}
|
VERSION=${{ steps.meta.outputs.version }}
|
||||||
|
|
||||||
# Push the Docker image to Beaker
|
# Get the image ID for the versioned tag
|
||||||
beaker image create \
|
IMAGE_ID=$(docker images --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep "alleninstituteforai/olmocr:$VERSION" | awk '{print $2}')
|
||||||
|
|
||||||
|
if [ -z "$IMAGE_ID" ]; then
|
||||||
|
echo "ERROR: Could not find image ID for tag alleninstituteforai/olmocr:$VERSION"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Push the Docker image to Beaker using the image ID
|
||||||
|
beaker image create "$IMAGE_ID" \
|
||||||
--name "olmocr-inference-$VERSION" \
|
--name "olmocr-inference-$VERSION" \
|
||||||
--workspace ai2/olmocr \
|
--workspace ai2/olmocr
|
||||||
"docker://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$VERSION"
|
|
||||||
|
|
||||||
- name: Clean up after build
|
- name: Clean up after build
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user