Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build-windows-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,29 @@ jobs:
cd aws/ami/windows
packer init .
PACKER_LOG=1 packer build -var 'skip_create_ami=${{ inputs.skip_create_ami }}' .

build-windows-ami-pytorch-account:
runs-on: ubuntu-latest
environment: packer-build-env
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: pytorch/test-infra
ref: ${{ inputs.branch }}

- name: Configure AWS Credentials (PyTorch Account)
uses: aws-actions/configure-aws-credentials@50ac8dd1e1b10d09dac7b8727528b91bed831ac0 # v3.0.2
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_build_packer_ami

- name: Setup Packer
uses: hashicorp/setup-packer@76e3039aa951aa4e6efe7e6ee06bc9ceb072142d # main
with:
version: ${{ env.PACKER_VERSION }}

- name: Packer Build
run: |
cd aws/ami/windows
packer init .
PACKER_LOG=1 packer build -var 'skip_create_ami=${{ inputs.skip_create_ami }}' .
2 changes: 1 addition & 1 deletion aws/ami/windows/windows.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "amazon-ami" "windows_root_ami" {
filters = {
name = "Windows_Server-2019-English-Tesla-*"
name = "Windows_Server-2019-English-Full-Base-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
Expand Down
Loading