mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-18 19:49:19 +00:00
Cleanup CI
This commit is contained in:
parent
0b07fa4722
commit
9f44fa6e79
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
@ -265,6 +265,7 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
load: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64
|
||||
@ -283,21 +284,11 @@ jobs:
|
||||
env:
|
||||
BEAKER_TOKEN: ${{ secrets.BEAKER_TOKEN }}
|
||||
run: |
|
||||
# Get version
|
||||
VERSION=${{ steps.meta.outputs.version }}
|
||||
|
||||
# Get the image ID for the versioned tag
|
||||
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" \
|
||||
beaker image create \
|
||||
--name "olmocr-inference-$VERSION" \
|
||||
--workspace ai2/olmocr
|
||||
--workspace ai2/olmocr \
|
||||
alleninstituteforai/olmocr:$VERSION
|
||||
|
||||
- name: Clean up after build
|
||||
if: always()
|
||||
|
@ -2,7 +2,7 @@ _MAJOR = "0"
|
||||
_MINOR = "1"
|
||||
# On main and in a nightly release the patch should be one ahead of the last
|
||||
# released build.
|
||||
_PATCH = "73"
|
||||
_PATCH = "74"
|
||||
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
||||
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
||||
_SUFFIX = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user