Skip to content

Commit 743bef2

Browse files
authored
Merge pull request #1181 from RcppCore/feature/docker
Add action for containerbuilds
2 parents c1581a6 + 3bb758d commit 743bef2

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: docker
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: "32 1 * * 6"
9+
10+
jobs:
11+
docker-ci:
12+
runs-on: ubuntu-latest
13+
name: ${{ matrix.tag }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
tag: [ci, ci-dev, ci-4.0]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v1
26+
27+
- name: Login to DockerHub
28+
uses: docker/login-action@v1
29+
with:
30+
username: ${{ secrets.DOCKER_USERNAME }}
31+
password: ${{ secrets.DOCKER_PASSWORD }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@v2
35+
with:
36+
push: true
37+
context: docker/${{ matrix.tag }}
38+
tags: rcpp/${{ matrix.tag }}
39+
40+
41+
docker-run:
42+
runs-on: ubuntu-latest
43+
name: run
44+
needs: docker-ci
45+
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v2
49+
50+
- name: Set up Docker Buildx
51+
uses: docker/setup-buildx-action@v1
52+
53+
- name: Login to DockerHub
54+
uses: docker/login-action@v1
55+
with:
56+
username: ${{ secrets.DOCKER_USERNAME }}
57+
password: ${{ secrets.DOCKER_PASSWORD }}
58+
59+
- name: Build and push
60+
uses: docker/build-push-action@v2
61+
with:
62+
push: true
63+
context: docker/run
64+
tags: rcpp/run
65+
66+
67+
docker-plus:
68+
runs-on: ubuntu-latest
69+
name: plus
70+
needs: docker-run
71+
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v2
75+
76+
- name: Set up Docker Buildx
77+
uses: docker/setup-buildx-action@v1
78+
79+
- name: Login to DockerHub
80+
uses: docker/login-action@v1
81+
with:
82+
username: ${{ secrets.DOCKER_USERNAME }}
83+
password: ${{ secrets.DOCKER_PASSWORD }}
84+
85+
- name: Build and push
86+
uses: docker/build-push-action@v2
87+
with:
88+
push: true
89+
context: docker/plus
90+
tags: rcpp/plus

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-10-02 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* .github/workflows/docker.yaml (jobs): Add container builder action
4+
15
2021-10-01 Dirk Eddelbuettel <edd@debian.org>
26

37
* DESCRIPTION (Version, Date): Roll minor version

0 commit comments

Comments
 (0)