Skip to content

Commit

Permalink
Fix/runner label (#76)
Browse files Browse the repository at this point in the history
* test label fix

* Further fixes to label in env definition

* test new github actions

* update .env

* small fix to branch name
  • Loading branch information
MotwaniM authored Apr 10, 2024
1 parent 7d3f135 commit 47f37e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/.github.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# github specific
EC2_INSTANCE_TYPE=t3.large
ENVIRONMENT=dev
RUNNER_LABEL=TEST1

RUNNER_LABEL=persistent-dev-large
RUNNER_SIZE=large
# App related
APP_NAME=consultations
DJANGO_SECRET_KEY=dummy-key # pragma: allowlist secret
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
version: ${{ steps.export.outputs.version }}
runner_label: ${{ steps.export.outputs.runner_label }}
environment: ${{ steps.export.outputs.environment }}
runner_size: ${{ steps.export.outputs.runner_size }}


steps:
Expand All @@ -27,14 +28,16 @@ jobs:
echo "app-name=${APP_NAME}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "environment=${ENVIRONMENT}" >> $GITHUB_OUTPUT
echo "RUNNER_LABEL=self-hosted" >> $GITHUB_OUTPUT
echo "RUNNER_LABEL=${RUNNER_LABEL}" >> $GITHUB_OUTPUT
echo "runner_size=${RUNNER_SIZE}" >> $GITHUB_OUTPUT
start-runner:
uses: i-dot-ai/i-dot-ai-core-github-actions/.github/workflows/start-runner.yml@main
needs: set-vars
with:
EC2_INSTANCE_TYPE: ${{ needs.set-vars.outputs.ec2-instance-type }}
ENVIRONMENT: ${{ needs.set-vars.outputs.environment }}
RUNNER_SIZE: ${{ needs.set-vars.outputs.runner_size }}
secrets:
AWS_GITHUBRUNNER_USER_ACCESS_KEY: ${{ secrets.AWS_GITHUBRUNNER_USER_ACCESS_KEY }}
AWS_GITHUBRUNNER_USER_SECRET_ID: ${{ secrets.AWS_GITHUBRUNNER_USER_SECRET_ID }}
Expand Down

0 comments on commit 47f37e6

Please sign in to comment.