Skip to content

Commit

Permalink
WIP: [ci] Add a workflow to build and publish compiler_gym docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Sep 23, 2021
1 parent 0f76d42 commit af948b8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docker_build.yaml
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 }}

0 comments on commit af948b8

Please sign in to comment.