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