Skip to content

Commit 3ea56f2

Browse files
committed
Change password input to secret and fix output name
1 parent 84aed1a commit 3ea56f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,23 @@ on:
1010
docker_username:
1111
required: true
1212
type: string
13-
docker_password:
14-
required: false
15-
type: string
1613
base_commit:
1714
required: true
1815
type: string
1916
head_commit:
2017
required: true
2118
type: string
19+
secrets:
20+
docker_password:
21+
required: false
22+
type: string
2223

2324
jobs:
2425
generate-matrix:
2526
runs-on: ubuntu-latest
2627
outputs:
2728
matrix: ${{ steps.set-matrix.outputs.matrix }}
28-
run_docker_jobs: ${{ steps.set-run-docker-jobs.outputs.run_docker_jobs }}
29+
run_docker_jobs: ${{ steps.set-matrix.outputs.run_docker_jobs }}
2930
steps:
3031
- name: Checkout code
3132
uses: actions/checkout@v3
@@ -73,7 +74,7 @@ jobs:
7374
uses: docker/login-action@releases/v1
7475
with:
7576
username: ${{ inputs.docker_username }}
76-
password: ${{ inputs.docker_password }}
77+
password: ${{ secrets.docker_password }}
7778
- name: Build and push docker
7879
uses: docker/build-push-action@v4
7980
with:

0 commit comments

Comments
 (0)