Skip to content

Add a callback for downstream evals, update Docker builds #420

Add a callback for downstream evals, update Docker builds

Add a callback for downstream evals, update Docker builds #420

Workflow file for this run

name: Docker
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
paths:
- 'Makefile'
- 'pyproject.toml'
- 'src/olmo_core/version.py'
- 'src/Dockerfile'
- '.github/workflows/docker.yml'
push:
branches:
- main
tags:
- 'v*.*.*'
jobs:
beaker:
name: Beaker images
runs-on: ubuntu-latest-m
timeout-minutes: 60
env:
BEAKER_TOKEN: ${{ secrets.BEAKER_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: Set env vars
run: |
echo "BEAKER_WORKSPACE=$(make get-beaker-workspace)" >> $GITHUB_ENV
- name: Build stable image
run: |
make stable-image
- name: Build nightly image
run: |
make nightly-image
- uses: allenai/setup-beaker@v2
if: env.BEAKER_TOKEN != ''
with:
token: ${{ env.BEAKER_TOKEN }}
workspace: ${{ env.BEAKER_WORKSPACE }}
- name: Push stable image
if: env.BEAKER_TOKEN != '' && startsWith(github.ref, 'refs/tags/')
run: |
rm -rf /opt/hostedtoolcache # clear up some disk space
make beaker-image-stable
- name: Push nightly image
if: env.BEAKER_TOKEN != '' && startsWith(github.ref, 'refs/tags/')
run: |
rm -rf /opt/hostedtoolcache # clear up some disk space
make beaker-image-nightly