File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed
actions/shared-build-steps Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : " Shared buildsteps"
2
+ inputs :
3
+ dockerhub_user :
4
+ required : true
5
+ dockerhub_password :
6
+ required : true
7
+ runner_os :
8
+ required : true
9
+ github_sha :
10
+ required : true
2
11
runs :
3
12
using : " composite"
4
13
steps :
5
14
- name : Login to Docker Hub 🔐🐳
6
15
uses : docker/login-action@v1
7
16
with :
8
- username : ${{ secrets.DOCKERHUB_USER }}
9
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
17
+ username : ${{ inputs.dockerhub_user }}
18
+ password : ${{ inputs.dockerhub_password }}
10
19
11
20
- name : Set up QEMU 🏗️
12
21
uses : docker/setup-qemu-action@v1
29
38
uses : actions/cache@v2
30
39
with :
31
40
path : /tmp/.buildx-cache
32
- key : ${{ runner.os }}-buildx-${{ github.sha }}
41
+ key : ${{ inputs.runner_os }}-buildx-${{ inputs.github_sha }}
33
42
restore-keys : |
34
- ${{ runner.os }}-buildx-
43
+ ${{ inputs.runner_os }}-buildx-
Original file line number Diff line number Diff line change 25
25
uses : actions/checkout@v2
26
26
27
27
- uses : ./.github/actions/shared-build-steps
28
+ with :
29
+ dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
30
+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
31
+ runner_os : ${{ runner.os }}
32
+ github_sha : ${{ github.sha }}
28
33
29
34
- name : Docker meta 💬
30
35
id : meta
57
62
uses : actions/checkout@v2
58
63
59
64
- uses : ./.github/actions/shared-build-steps
65
+ with :
66
+ dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
67
+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
68
+ runner_os : ${{ runner.os }}
69
+ github_sha : ${{ github.sha }}
60
70
61
71
- name : Docker meta 💬
62
72
id : meta
You can’t perform that action at this time.
0 commit comments