Skip to content

Commit ee5e480

Browse files
committed
add two dependent jobs
1 parent 8ca0acd commit ee5e480

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,55 @@ jobs:
3434
push: true
3535
context: docker/${{ matrix.tag }}
3636
tags: rcpp/${{ matrix.tag }}
37+
38+
39+
docker-run:
40+
runs-on: ubuntu-latest
41+
name: run
42+
needs: docker-ci
43+
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@v1
50+
51+
- name: Login to DockerHub
52+
uses: docker/login-action@v1
53+
with:
54+
username: ${{ secrets.DOCKER_USERNAME }}
55+
password: ${{ secrets.DOCKER_PASSWORD }}
56+
57+
- name: Build and push
58+
uses: docker/build-push-action@v2
59+
with:
60+
push: true
61+
context: docker/run
62+
tags: rcpp/run
63+
64+
65+
docker-plus:
66+
runs-on: ubuntu-latest
67+
name: plus
68+
needs: docker-run
69+
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v2
73+
74+
- name: Set up Docker Buildx
75+
uses: docker/setup-buildx-action@v1
76+
77+
- name: Login to DockerHub
78+
uses: docker/login-action@v1
79+
with:
80+
username: ${{ secrets.DOCKER_USERNAME }}
81+
password: ${{ secrets.DOCKER_PASSWORD }}
82+
83+
- name: Build and push
84+
uses: docker/build-push-action@v2
85+
with:
86+
push: true
87+
context: docker/plus
88+
tags: rcpp/plus

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
2021-10-02 Dirk Eddelbuettel <[email protected]>
22

3-
* .github/workflows/docker.yaml (jobs): Add basic container builder
3+
* .github/workflows/docker.yaml (jobs): Add container builder action
44

55
2021-10-01 Dirk Eddelbuettel <[email protected]>
66

0 commit comments

Comments
 (0)