-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove deprecated registry login and add env setup (#443)
## Description uds-common removed the task for registry login and moved that logic in to the env setup github action. This PR reworks our use of the deprecated registry-login task and uses that env setup. ## Related Issue Fixes #296 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed
- Loading branch information
1 parent
e1f7879
commit ebd3087
Showing
4 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
name: "Setup Environment" | ||
description: "UDS Environment Setup" | ||
inputs: | ||
gh_token: | ||
ghToken: | ||
description: 'GITHUB_TOKEN' | ||
required: true | ||
ib_user: | ||
registry1Username: | ||
description: 'IRON_BANK_ROBOT_USERNAME' | ||
required: true | ||
ib_password: | ||
registry1Password: | ||
description: 'IRON_BANK_ROBOT_PASSWORD' | ||
required: true | ||
|
||
|
@@ -31,3 +31,18 @@ runs: | |
shell: bash | ||
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver | ||
run: brew install defenseunicorns/tap/[email protected] | ||
|
||
- name: Iron Bank Login | ||
if: ${{ inputs.registry1Username != '' }} | ||
env: | ||
REGISTRY_USERNAME: ${{ inputs.registry1Username }} | ||
REGISTRY_PASSWORD: ${{ inputs.registry1Password }} | ||
run: echo "${{ env.REGISTRY_PASSWORD }}" | uds zarf tools registry login -u "${{ env.REGISTRY_USERNAME }}" --password-stdin registry1.dso.mil | ||
shell: bash | ||
|
||
- name: GHCR Login | ||
if: ${{ inputs.ghToken != '' }} | ||
env: | ||
GH_TOKEN: ${{ inputs.ghToken }} | ||
run: echo "${{ env.GH_TOKEN }}" | uds zarf tools registry login -u "dummy" --password-stdin ghcr.io | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters