Skip to content

Commit 1d13487

Browse files
authored
Enhancements to Docker publish flow (freechipsproject#136)
* Fix Docker Hub organization name * Build Docker image in CI * Upgrade to docker/build-push-action@v2
1 parent 093203f commit 1d13487

File tree

3 files changed

+32
-21
lines changed

3 files changed

+32
-21
lines changed

.github/workflows/build-push-docker-image.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/docker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Docker image
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
7+
jobs:
8+
docker:
9+
name: Build Docker Image and Publish (only on push)
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Check out the repo
14+
uses: actions/checkout@v2
15+
16+
# Steps required by docker/build-push-action@v2
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v1
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v1
23+
with:
24+
username: ${{ secrets.DOCKERHUB_USERNAME }}
25+
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
26+
27+
- name: Build (always) and Publish (only on push)
28+
uses: docker/build-push-action@v2
29+
with:
30+
tags: ucbbar/chisel-bootcamp:latest
31+
push: ${{ github.event_name == 'push' }}

Install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Make sure you have Docker [installed](https://docs.docker.com/get-docker/) on yo
1717
Run the following command:
1818

1919
```
20-
docker run -it --rm -p 8888:8888 ucb-bar/chisel-bootcamp
20+
docker run -it --rm -p 8888:8888 ucbbar/chisel-bootcamp
2121
```
2222

2323
This will download a Dokcer image for the bootcamp and run it. The output will end in the following message:

0 commit comments

Comments
 (0)