Skip to content

Commit

Permalink
Separate org name from username
Browse files Browse the repository at this point in the history
  • Loading branch information
cjreed121 committed Jul 12, 2024
1 parent e0f1566 commit 89271e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
required: true
type: boolean
description: Whether to push the built images to Docker Hub
docker_username:
docker_org_name:
required: true
type: string
base_commit:
Expand All @@ -17,6 +17,8 @@ on:
required: true
type: string
secrets:
docker_username:
required: false
docker_password:
required: false

Expand All @@ -35,7 +37,7 @@ jobs:
id: set-matrix
uses: submitty/[email protected]
with:
docker-username: ${{ inputs.docker_username }}
docker-username: ${{ inputs.docker_org_name }}
base-commit: ${{ inputs.base_commit }}
head-commit: ${{ inputs.head_commit }}
docker:
Expand All @@ -57,7 +59,7 @@ jobs:
uses: docker/login-action@releases/v1
if: ${{ inputs.push }}
with:
username: ${{ inputs.docker_username }}
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: Build and push docker
uses: docker/build-push-action@v4
Expand Down

0 comments on commit 89271e4

Please sign in to comment.