Skip to content

test konveyor bot key #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/provision-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Provision Linux VM using reusable workflow.

on: [push]

jobs:
call-reusable-workflow:
uses: ./.github/workflows/provision-runner.yml
with:
ec2-image-id: ami-0b7d4973163feb944
ec2-instance-type: t2.micro
security-group-id: sg-0a3e6b53e86d0e69d
subnet-id: subnet-06113672589e7e836
ec2-os-type: windows
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.GH_RUNNER_API_TOKEN }}

run-commands:
needs: call-reusable-workflow
runs-on: ${{ needs.call-reusable-workflow.outputs.instance_label }}
steps:
- name: Running script on windows
run: |
echo "Running from windows"
$windowsVersion = (Get-ComputerInfo).WindowsVersion
echo "Windows Version: $windowsVersion"
[Environment]::UserName


remove-ec2-runner:
needs: [call-reusable-workflow,run-commands]
uses: ./.github/workflows/remove-runner.yml
with:
ec2-instance-id: ${{ needs.call-reusable-workflow.outputs.ec2-instance-id }}
ec2-runner-label: ${{ needs.call-reusable-workflow.outputs.instance_label }}
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.GH_RUNNER_API_TOKEN }}