Skip to content

Commit

Permalink
Fix ami cleaner (#1990)
Browse files Browse the repository at this point in the history
* mv cleaner before packer

* remove cleanup after packer
  • Loading branch information
arturrez authored Jun 20, 2024
1 parent 0f1e20c commit 47e676c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/release-public-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,3 @@ jobs:
id: build
run: "packer build -color=false -force ./.github/packer/aws-ubuntu-docker.pkr.hcl"

- name: install nodejs
uses: actions/setup-node@v3
with:
node-version: '16'

- name: install npx aws-amicleaner
run: npm install -g aws-amicleaner

- name: clean up old AMIs
run: npx aws-amicleaner --include-name 'public-avalanchecli-ubuntu-*' --exclude-newest 2 --exclude-days 14 --region="*" --force
env:
AWS_ACCESS_KEY_ID: ${{ secrets.EXPERIMENTAL_AWS_ACCESS_KEY_PACKER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.EXPERIMENTAL_AWS_SECRET_KEY_PACKER }}
AWS_REGION: us-east-1

0 comments on commit 47e676c

Please sign in to comment.