forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: greg pereira <[email protected]>
- Loading branch information
1 parent
e5fc5d1
commit 9e16418
Showing
3 changed files
with
62 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: AI-lab remove rhel-build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'build/docker/builder/cpu/rhel9/**' | ||
- '.github/workflows/ai-lab-remote-rhel-build.yaml' | ||
|
||
env: | ||
AWS_REGION: us-east-1 | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
TF_VAR_vpc_id: ${{ secrets.VPC_ID }} | ||
TF_VAR_rh_access: ${{ secrets.RH_ACCESS }} | ||
TF_VAR_rh_org: ${{ secrets.RH_ORG }} | ||
TF_VAR_ami_id: ${{ secrets.AMI_ID }} | ||
|
||
jobs: | ||
ai-lab-podman-remote: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Setup Terraform | ||
uses: hashicorp/[email protected] | ||
with: | ||
terraform_version: "1.7.5" | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: sshkeygen for ansible | ||
run: ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N "" | ||
|
||
- name: Terraform Init | ||
run: terraform init | ||
|
||
- name: Terraform Apply | ||
run: terraform apply -auto-approve | ||
|
||
- name: Terraform Output | ||
id: terraform-output | ||
run: | | ||
echo "id=$(terraform output id | xargs)" >> $GITHUB_OUTPUT | ||
echo "url=$(terraform output host | xargs)" >> $GITHUB_OUTPUT | ||
echo "ssh_public_key=$(terraform output ssh_public_key | xargs)" >> $GITHUB_OUTPUT | ||
echo "pem_filename=$(terraform output pem_filename | xargs)" >> $GITHUB_OUTPUT | ||
- name: Install podman remote | ||
run: | | ||
sudo apt-get install -y podman podman-remote | ||
sudo apt-get install -y jq | ||
- name: Terraform Destroy | ||
if: always() | ||
run: terraform destroy -auto-approve |
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