-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: aws_test | ||
on: workflow_dispatch | ||
on: push | ||
|
||
jobs: | ||
start-runner: | ||
|
@@ -17,14 +17,15 @@ jobs: | |
aws-region: ${{ vars.AWS_REGION }} | ||
- name: Start EC2 runner | ||
id: start-ec2-runner | ||
uses: machulav/ec2-github-runner@v2 | ||
uses: esteve/ec2-github-runner@Optionally-execute-runner-as-a-service | ||
with: | ||
mode: start | ||
github-token: ${{ secrets.GH_TOKEN }} | ||
ec2-image-id: ${{ vars.AWS_IMAGE_ID }} | ||
ec2-instance-type: ${{ vars.AWS_INSTANCE_TYPE }} | ||
subnet-id: ${{ vars.AWS_SUBNET }} | ||
security-group-id: ${{ vars.AWS_SECURITY_GROUP }} | ||
run-runner-as-user: ubuntu | ||
aws-resource-tags: > # optional, requires additional permissions | ||
[ | ||
{"Key": "Name", "Value": "ec2-github-runner"}, | ||
|
@@ -37,18 +38,23 @@ jobs: | |
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner | ||
steps: | ||
- name: Set $HOME | ||
run: echo "HOME=${{ github.workspace }}" >> $GITHUB_ENV | ||
run: | | ||
echo "HOME=${{ github.workspace }}" >> $GITHUB_ENV | ||
echo "PIP_ROOT_USER_ACTION=ignore" >> $GITHUB_ENV | ||
- name: setting git credentials | ||
run: | | ||
git config --system user.name "hvgazula" | ||
git config --system user.email "[email protected]" | ||
# git config --global user.name "hvgazula" | ||
# git config --global user.email "[email protected]" | ||
echo $HOME | ||
whoami | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install Datalad | ||
uses: datalad/datalad-action/install@main | ||
with: | ||
|