Skip to content

Commit

Permalink
hate you actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Vanhemert committed Nov 30, 2023
1 parent 3c5adab commit aefa7cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
name: "Setup Environment"
description: "UDS Environment Setup"

inputs:
registry1_username:
required: true
registry1_password:
required: true

runs:
using: "composite"
steps:
Expand All @@ -13,7 +19,7 @@ runs:
download-init-package: true

- name: Iron Bank Login
run: zarf tools registry login -u "${{secrets.IRON_BANK_ROBOT_USERNAME}}" -p "${{secrets.IRON_BANK_ROBOT_PASSWORD}}" registry1.dso.mil
run: zarf tools registry login -u "${{inputs.registry1_username}}" -p "${{inputs.registry1_password}}" registry1.dso.mil

- name: Use Node.js latest
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Environment setup
uses: ./.github/actions/setup
with:
registry1_username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
registry1_password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}

- name: Create test bundle
run: uds run create-test-bundle
Expand Down

0 comments on commit aefa7cc

Please sign in to comment.