Skip to content

Commit

Permalink
20250205174527
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanschmidt committed Feb 5, 2025
1 parent 4414582 commit d0f1442
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/lambda-do-release-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
ref: ${{ inputs.tag }}

# Runner Binaries Syncer
- name: Install dependencies - Runner Binaries Syncer
run: yarn install
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer
Expand All @@ -38,6 +39,7 @@ jobs:
with:
args: zip runner-binaries-syncer.zip index.js

# ALI scaleUp scaleDown
- name: Install dependencies - Runners
run: yarn install
working-directory: terraform-aws-github-runner/modules/runners/lambdas/runners
Expand All @@ -53,6 +55,7 @@ jobs:
with:
args: zip runners.zip index.js

# Webhook
- name: Install dependencies - Webhook
run: yarn install
working-directory: terraform-aws-github-runner/modules/webhook/lambdas/webhook
Expand All @@ -68,38 +71,18 @@ jobs:
with:
args: zip webhook.zip index.js

- uses: ncipollo/release-action@v1
with:
artifacts: "runner-binaries-syncer.zip,runners.zip,webhook.zip"
name: ${{ inputs.tag }}
tag: ${{ inputs.tag }}

release-ci-queue-pct:
name: Upload Release for ci-queue-pct lambda
runs-on: ubuntu-latest
permissions:
contents: write
env:
REF: ${{ inputs.tag }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag }}

# ci-queue-pct for hud.pytorch.org/sli
- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Build deployment.zip
working-directory: aws/lambda/ci-queue-pct
run: make deployment.zip

- name: Copy deployment.zip to root
run: cp aws/lambda/ci-queue-pct/deployment.zip ci-queue-pct.zip

- uses: ncipollo/release-action@v1
with:
artifacts: "ci-queue-pct.zip"
artifacts: "runner-binaries-syncer.zip,runners.zip,webhook.zip,ci-queue-pct.zip"
name: ${{ inputs.tag }}
tag: ${{ inputs.tag }}

0 comments on commit d0f1442

Please sign in to comment.