Skip to content

Commit b9029e9

Browse files
authored
Add action for building docker images (#165)
* Add action for building docker images * Run on all pushes for testing * Remove arm64 build for now (too slow) * Revert "Run on all pushes for testing" This reverts commit 2c3d30b.
1 parent 0e8cf41 commit b9029e9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/images.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Images
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2 # https://github.com/marketplace/actions/checkout
14+
with:
15+
fetch-depth: 0
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1 # https://github.com/marketplace/actions/docker-setup-qemu
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v1 # https://github.com/marketplace/actions/docker-setup-buildx
20+
- name: Login to DockerHub
21+
uses: docker/login-action@v1 # https://github.com/marketplace/actions/docker-login
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
######################################################################################################
27+
# partmc
28+
- name: Build and push compdyn/partmc
29+
uses: docker/build-push-action@v2 # https://github.com/marketplace/actions/build-and-push-docker-images
30+
with:
31+
context: .
32+
platforms: linux/amd64
33+
push: true
34+
no-cache: true
35+
tags: compdyn/partmc:latest
36+
37+
######################################################################################################
38+
# partmc-camp
39+
- name: Build and push compdyn/partmc-camp
40+
uses: docker/build-push-action@v2 # https://github.com/marketplace/actions/build-and-push-docker-images
41+
with:
42+
file: Dockerfile.camp
43+
context: .
44+
platforms: linux/amd64
45+
push: true
46+
no-cache: true
47+
tags: compdyn/partmc-camp:latest

0 commit comments

Comments
 (0)