-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to install from prime registry
- Loading branch information
1 parent
e5ff194
commit 6ecab8a
Showing
3 changed files
with
31 additions
and
7 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 |
---|---|---|
|
@@ -7,9 +7,16 @@ on: | |
# Triggers the workflow on push or pull request events but only for the main branch | ||
workflow_dispatch: | ||
inputs: | ||
registry: | ||
description: 'Type in registry to be used' | ||
default: 'docker' | ||
type: choice | ||
options: | ||
- 'docker' | ||
- 'prime' | ||
rancher_version: | ||
description: 'Type in rancher version to be installed' | ||
default: 'stable' | ||
default: 'latest' | ||
name: | ||
description: 'Name tag of Instance' | ||
default: vivek-rancher-server | ||
|
@@ -28,6 +35,7 @@ jobs: | |
AWS_REGION: 'us-east-2' | ||
TF_VAR_rancher_version: ${{ github.event.inputs.rancher_version }} | ||
TF_VAR_name: ${{ github.event.inputs.name }} | ||
TF_VAR_registry: ${{ github.event.inputs.registry }} | ||
TF_VAR_AWS_KEY_ID: ${{ secrets.AWS_KEY_ID }} | ||
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ID }} | ||
TF_VAR_AWS_REGION: 'us-east-2' | ||
|
@@ -37,6 +45,12 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Debug Inputs | ||
run: | | ||
echo "Registry: ${{ github.event.inputs.Registry }}" | ||
echo "Rancher Version: ${{ github.event.inputs.rancher_version }}" | ||
echo "Name: ${{ github.event.inputs.name }}" | ||
# Runs a single command using the runners shell | ||
- name: Setup Terraform | ||
uses: hashicorp/[email protected] | ||
|
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