diff --git a/.github/.github.env b/.github/.github.env index 686900f1..cae63692 100644 --- a/.github/.github.env +++ b/.github/.github.env @@ -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 diff --git a/.github/workflows/build-gh.yml b/.github/workflows/build-gh.yml index d31dec87..7f60b19c 100644 --- a/.github/workflows/build-gh.yml +++ b/.github/workflows/build-gh.yml @@ -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: @@ -27,7 +28,8 @@ 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 @@ -35,6 +37,7 @@ jobs: 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 }}