Skip to content

Commit

Permalink
clean builder
Browse files Browse the repository at this point in the history
  • Loading branch information
natolambert committed Jul 16, 2024
1 parent 224cf66 commit 76f6642
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
28 changes: 1 addition & 27 deletions .github/actions/push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,8 @@ inputs:
runs:
using: composite
steps:
# - shell: bash
# run: |
# # Tag image with registry.
# docker tag ${{ inputs.image }} ghcr.io/allenai/${{ inputs.image }}
# - shell: bash
# if: "!startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'"
# run: |
# # Push image.
# docker push ghcr.io/allenai/${{ inputs.image }}
# - shell: bash
# if: github.event_name != 'pull_request' && inputs.latest == 'true'
# run: |
# # Push latest image.
# image_tag=${{ inputs.image }}
# latest_tag=ghcr.io/allenai/${image_tag%:*}:latest
# docker tag "${image_tag}" "${latest_tag}"
# docker push "${latest_tag}"
# - shell: bash
# if: startsWith(github.ref, 'refs/tags/')
# run: |
# # Push release image.
# GITHUB_TAG=${GITHUB_REF#refs/tags/}
# RELEASE=${GITHUB_TAG%-*}
# RELEASE_IMAGE="ghcr.io/allenai/${{ inputs.image }}-${RELEASE}"
# docker tag ${{ inputs.image }} "${RELEASE_IMAGE}"
# docker push "${RELEASE_IMAGE}"
- shell: bash
if: startsWith(github.ref, 'refs/tags/') && inputs.beaker != ''
if: inputs.beaker != '' # previously startsWith(github.ref, 'refs/tags/') && ...
run: |
# Push release to Beaker.
SHORT_SHA=$(git rev-parse --short HEAD)
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ on:
- 'open_instruct/**'
- '!open_instruct/README.md'
branches: [main]
tags:
- 'v*.*.*-open_instruct'
pull_request:
# Also run on PRs that update the files in the image's directory (other than README).
branches: [main]
Expand Down

0 comments on commit 76f6642

Please sign in to comment.