Skip to content

Add models (#179)

Add models (#179) #17

Workflow file for this run

# This is an example workflow file.
#
# When you add a new image, copy this file and then change all mentions of "hello-world" with
# the name of your new image.
#
# Read through the rest of the comments in this file to figure out how it works, and what else
# you need to change.
name: build_beaker_image
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
# Run this workflow anytime a push updates one of the files in the image's directory
# (other than the README), and anytime there's a new release tag for this image.
paths:
- 'rewardbench/**'
- 'scripts/**'
- 'Dockerfile'
- 'setup.py'
branches: [main]
# pull_request: # note, comment this out for running on every push
# # Also run on PRs that update the files in the image's directory (other than README).
# branches: [main]
# paths:
# - 'rewardbench/**'
# - 'scripts/**'
# - 'Dockerfile'
# - 'setup.py'
# workflow_dispatch: # This allows us to manually trigger a build through the GitHub UI.
env:
DOCKER_BUILDKIT: "1"
jobs:
build:
name: rewardbench
runs-on: ubuntu-latest
timeout-minutes: 60
if: (github.event_name != 'workflow_run') || (github.event.workflow_run.conclusion == 'success')
steps:
- uses: actions/checkout@v3
- name: Setup environment
uses: ./.github/actions/setup
with:
beaker_token: ${{ secrets.BEAKER_TOKEN }}
- name: Verify Beaker install
run: |
beaker account whoami
# big images fail, trying this
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache /usr/share/dotnet "$AGENT_TOOLSDIRECTORY"
- name: Build image
run: |
docker build \
-t rewardbench . --platform linux/amd64
- name: Check image
run: |
docker run --rm rewardbench
- name: Push image
# if: github.event_name != 'pull_request'
uses: ./.github/actions/push
with:
image: rewardbench # this is the tag of the image we just built in the previous step
beaker: rewardbench_auto # this is the name of the image on Beaker
latest: true # this flag says we should also push this as the 'latest' version to GHCR