Skip to content

Commit

Permalink
ci: Use activation key and org ID instead of username and password (#…
Browse files Browse the repository at this point in the history
…1096)

* ci: Use activation key and org ID instead of username and password

* fixup! ci: Use activation key and org ID instead of username and password

Update makefile and vsphere readme
  • Loading branch information
dlipovetsky authored May 30, 2024
1 parent 75f5da7 commit 0974f3e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aws-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ jobs:
args: runE2e "${{ matrix.os }}" "${{ matrix.buildConfig }}" aws true
env:
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
RHSM_USER: ${{ secrets.RHSM_USER }}
RHSM_PASS: ${{ secrets.RHSM_PASS }}
RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }}
RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }}

- name: Run make destroy to clean up failed tests
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ jobs:
args: runE2e "${{ matrix.os }}" "${{ matrix.buildConfig }}" aws false
env:
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
RHSM_USER: ${{ secrets.RHSM_USER }}
RHSM_PASS: ${{ secrets.RHSM_PASS }}
RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }}
RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }}
4 changes: 2 additions & 2 deletions .github/workflows/release-vsphere-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
VSPHERE_SERVER: ${{ secrets.VSPHERE_SERVER }}
VSPHERE_DATASTORE: ${{ secrets.VSPHERE_DATASTORE }}
RHSM_USER: ${{ secrets.RHSM_USER }}
RHSM_PASS: ${{ secrets.RHSM_PASS }}
RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }}
RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }}

- name: Run make destroy to clean up failed tests
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vsphere-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ jobs:
VSPHERE_SERVER: ${{ secrets.VSPHERE_SERVER }}
VSPHERE_DATASTORE: ${{ secrets.VSPHERE_DATASTORE }}
VSPHERE_DATACENTER: ${{ secrets.VSPHERE_DATACENTER }}
RHSM_USER: ${{ secrets.RHSM_USER }}
RHSM_PASS: ${{ secrets.RHSM_PASS }}
RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }}
RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }}

- name: Run make destroy to clean up failed tests
if: ${{ always() }}
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export DOCKER_DEVKIT_VSPHERE_ARGS ?= \
--env VSPHERE_USERNAME \
--env VSPHERE_PASSWORD \
--env RHSM_USER \
--env RHSM_PASS
--env RHSM_PASS \
--env RHSM_ACTIVATION_KEY \
--env RHSM_ORG_ID

export DOCKER_DEVKIT_BASTION_ARGS ?= \
--env SSH_BASTION_USERNAME \
Expand Down
9 changes: 9 additions & 0 deletions docs/dev/vsphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,20 @@ VSPHERE_PASSWORD=example_password

**Environment Variables for RedHat subscription:**

For username and password:

```bash
RHSM_USER=example_user
RHSM_PASS=example_password
```

Or activation key and org ID:

```bash
RHSM_ACTIVATION_KEY=example_key
RHSM_ORG_ID=example_org_id
```

**Packer variables for vSphere:**
Following variables are needed for the vSphere. Add this configuration in the `image.yaml`

Expand Down

0 comments on commit 0974f3e

Please sign in to comment.