File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,19 @@ name: Build and Push Docker Image
33on :
44 workflow_call :
55 inputs :
6- dockerhub-username :
7- description : ' DockerHub username'
8- required : true
9- type : string
10- dockerhub-pat :
11- description : ' DockerHub personal access token'
12- required : true
13- type : string
146 dockerfile :
157 description : ' Path to Dockerfile'
16- required : true
8+ default : ' Dockerfile '
179 type : string
1810 image-name :
19- description : ' Docker image name'
20- required : true
11+ description : ' Name of Docker Image'
2112 type : string
13+ required : true
14+ secrets :
15+ dockerhub-username :
16+ required : true
17+ dockerhub-pat :
18+ required : true
2219
2320jobs :
2421 build-and-push :
6966 - name : Login to Docker Hub
7067 uses : docker/login-action@v3
7168 with :
72- username : ${{ secrets.DOCKERHUB_USERNAME }}
73- password : ${{ secrets.DOCKERHUB_PAT }}
69+ username : ${{ secrets.dockerhub-username }}
70+ password : ${{ secrets.dockerhub-pat }}
7471
7572 - name : Set up QEMU
7673 uses : docker/setup-qemu-action@v3
You can’t perform that action at this time.
0 commit comments