diff --git a/.github/workflows/build-gh.yml b/.github/workflows/build-gh.yml index deba432d..4e5edccb 100644 --- a/.github/workflows/build-gh.yml +++ b/.github/workflows/build-gh.yml @@ -29,10 +29,23 @@ jobs: echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "RUNNER_LABEL=self-hosted" >> $GITHUB_OUTPUT + start-runner: + uses: i-dot-ai/i-dot-ai-core-github-actions/.github/workflows/start-runner.yaml@feature/start-stop-runners + needs: set-vars + with: + EC2_INSTANCE_TYPE: ${{ needs.set-vars.outputs.ec2-instance-type }} + secrets: + AWS_GITHUBRUNNER_USER_ACCESS_KEY: ${{ secrets.AWS_GITHUBRUNNER_USER_ACCESS_KEY }} + AWS_GITHUBRUNNER_USER_SECRET_ID: ${{ secrets.AWS_GITHUBRUNNER_USER_SECRET_ID }} + AWS_GITHUBRUNNER_PAT: ${{ secrets.AWS_GITHUBRUNNER_PAT}} + AWS_REGION: ${{ secrets.AWS_REGION }} + + + build-image: needs: - set-vars - uses: i-dot-ai/i-dot-ai-core-github-actions/.github/workflows/build-docker.yml@main + uses: i-dot-ai/i-dot-ai-core-github-actions/.github/workflows/build-docker.yml@feature/start-stop-runners with: APP_NAME: ${{ needs.set-vars.outputs.app-name }} RUNNER_LABEL: ${{ needs.set-vars.outputs.runner_label }}