Skip to content

Commit

Permalink
use runs-on runner for release images workflow (#14907)
Browse files Browse the repository at this point in the history
  • Loading branch information
aluon authored Oct 10, 2024
1 parent 136058a commit 85bba15
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/copy-images-to-dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
required: false
type: string
description: the git sha to use for the image tag. If not provided, the git sha of the triggering branch will be used
dry_run:
required: false
type: boolean
default: false
description: If true, run the workflow without actually pushing images
workflow_dispatch:
inputs:
image_tag_prefix:
Expand All @@ -21,6 +26,11 @@ on:
required: false
type: string
description: the git sha to use for the image tag. If not provided, the git sha of the triggering branch will be used
dry_run:
required: false
type: boolean
default: false
description: If true, run the workflow without actually pushing images

permissions:
contents: read
Expand All @@ -29,7 +39,7 @@ permissions:
jobs:
copy-images:
# Run on a machine with more local storage for large docker images
runs-on: medium-perf-docker-with-local-ssd
runs-on: runs-on,cpu=16,family=m6id,hdd=500,image=aptos-ubuntu-x64,run-id=${{ github.run_id }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -61,4 +71,5 @@ jobs:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ECR_ACCOUNT_NUM }}
GCP_DOCKER_ARTIFACT_REPO: ${{ vars.GCP_DOCKER_ARTIFACT_REPO }}
IMAGE_TAG_PREFIX: ${{ inputs.image_tag_prefix }}
run: ./docker/release-images.mjs --wait-for-image-seconds=3600
DRY_RUN: ${{ inputs.dry_run }}
run: ./docker/release-images.mjs --wait-for-image-seconds=3600 ${{ inputs.dry_run && '--dry-run' || '' }}

0 comments on commit 85bba15

Please sign in to comment.