-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: [ci] Add a workflow to build and publish compiler_gym docker image.
- Loading branch information
1 parent
ad52816
commit 0b2f780
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
# This workflow is used to build the binary wheels that can be uploaded to pypi | ||
# for releases. It produces an artifact containing a macOS and manylinux binary | ||
# wheel from the requested branch. It also runs the full test suite against | ||
# these wheels. | ||
name: Publish Docker Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: | ||
- development | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
username: chriscummins | ||
password: TestPrefix-${{ secrets.DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Get docker metadata | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: chriscummins/compiler_gym | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: packaging/compiler_gym | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |