Skip to content

Commit 3a87074

Browse files
committed
Pass Docker credentials to Action
1 parent 12eafff commit 3a87074

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/actions/build-and-deploy-quarkus-jvm/action.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build and Deploy Quarkus JVM Image
22
description: Build and deploy Quarkus JVM image to DockerHub
33
inputs:
4+
docker-username:
5+
description: User name to log into registry
6+
required: true
7+
docker-password:
8+
description: Password to log into registry
9+
required: true
410
image-name:
511
description: Docker image name
612
required: true
@@ -24,5 +30,5 @@ runs:
2430
-Dquarkus.container-image.push=true \
2531
-Dquarkus.container-image.name=${{ inputs.image-name }} \
2632
-Dquarkus.container-image.tag=${{ inputs.image-tag }} \
27-
-Dquarkus.container-image.username=${{ secrets.DOCKER_USERNAME }} \
28-
-Dquarkus.container-image.password=${{ secrets.DOCKER_PASSWORD }}
33+
-Dquarkus.container-image.username=${{ inputs.docker-username }} \
34+
-Dquarkus.container-image.password=${{ inputs.docker-password }}

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,7 @@ jobs:
219219
- name: Build and Push Image
220220
uses: ./.github/actions/build-and-deploy-quarkus-jvm
221221
with:
222+
docker-username: ${{ secrets.DOCKER_USERNAME }}
223+
docker-password: ${{ secrets.DOCKER_PASSWORD }}
222224
image-name: explorviz/span-service-jvm
223225
image-tag: ${{ matrix.arch }}

0 commit comments

Comments
 (0)