Skip to content

Commit af948b8

Browse files
committed
WIP: [ci] Add a workflow to build and publish compiler_gym docker image.
1 parent 0f76d42 commit af948b8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# This workflow is used to build the binary wheels that can be uploaded to pypi
3+
# for releases. It produces an artifact containing a macOS and manylinux binary
4+
# wheel from the requested branch. It also runs the full test suite against
5+
# these wheels.
6+
name: Publish Docker Image
7+
8+
on:
9+
push:
10+
branches:
11+
- development
12+
tags:
13+
- v*
14+
pull_request:
15+
branches:
16+
- development
17+
18+
jobs:
19+
docker:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Log in to Docker Hub
25+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
26+
with:
27+
username: chriscummins
28+
password: TestPrefix-${{ secrets.DOCKER_HUB_PASSWORD }}
29+
30+
- name: Get docker metadata
31+
uses: docker/metadata-action@v3
32+
with:
33+
images: chriscummins/compiler_gym
34+
35+
- name: Build and push Docker image
36+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
37+
with:
38+
context: packaging/compiler_gym
39+
push: true
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)