Skip to content

Fix minor typos, end white spaces deletion #16

Fix minor typos, end white spaces deletion

Fix minor typos, end white spaces deletion #16

Workflow file for this run

name: aws_test
on:
push:
branches: [ "main" ]
pull_request_target:
branches: [ "main" ]
workflow_dispatch:
jobs:
awstest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# ---------------------------
# update the operating system
# ---------------------------
- name: update OS
run: |
sudo apt-get update
sudo apt-get install -y jq
# ---------------------------
# install and configure AWSCLI
# ---------------------------
- name: install awscli and helm
run: |
. ./util/awscli_util.sh
#awscli_install
awscli_config
helm_install
env:
AWS_KEYPAIR: ${{secrets.GEORGES_AWS_KEYPAIR}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_ACCESS_KEY_SECRET: ${{secrets.AWS_ACCESS_KEY_SECRET}}
# ---------------------------
# launch an EC2 VM and wait for start complete.
# ---------------------------
- name: create EC2 VM
run: |
. ./util/awscli_util.sh
instanceid=$(awscli_launch ao)
echo "instanceid=${instanceid}" >> ${GITHUB_ENV}
awscli_wait_run ${instanceid} || exit -1
echo "ipaddr=$(awscli_get_ipaddr ${instanceid})" >> ${GITHUB_ENV}
# ---------------------------
# install minikube on the target VM
# ---------------------------
- name: install and start minikube
run: |
. ./util/awscli_util.sh
awscli_start_minikube ${ipaddr}
# ---------------------------
# download minikube credentials and open port access
# ---------------------------
- name: download minikube creds
run: |
. ./util/awscli_util.sh
awscli_access_minikube ${ipaddr}
# ---------------------------
# terminate the VM
# ---------------------------
- name: finish
if: success() || failure()
run: |
. ./util/awscli_util.sh
if [[ ${instanceid} != "" ]]
then
awscli_terminate ${instanceid}
fi