-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exponential backoff for deregistering task definitions (#4)
* add debug flag, set default parallel=2 * turn on verbose flag when debug flag is on * implement exponential backoff across goroutines for task definition deregistration * remove commented code * fix typo * break out worker and dispatcher into own functions; replace os.Exit(1) with return * upload assets as zip files instead of raw binaries
- Loading branch information
Showing
12 changed files
with
457 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,10 @@ jobs: | |
|
||
- name: Build artifacts | ||
run: | | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -X main.Version=TEST" -a -o build/Linux/go-ecs-cleaner . | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -X main.Version=TEST" -a -o build/macOS/go-ecs-cleaner . | ||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -X main.Version=TEST" -a -o build/Windows/go-ecs-cleaner.exe . | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -X main.Version=${{ github.ref }}" -a -o build/Linux/go-ecs-cleaner . | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -X main.Version=${{ github.ref }}" -a -o build/macOS/go-ecs-cleaner . | ||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -X main.Version=${{ github.ref }}" -a -o build/Windows/go-ecs-cleaner.exe . | ||
for os in Linux macOS Windows ; do cd build && zip -r ${os}.zip ${os} && cd .. ; done | ||
- name: Create release | ||
id: create_release | ||
|
@@ -39,8 +40,8 @@ jobs: | |
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Linux binary | ||
id: upload-linux-binary | ||
- name: Upload Linux assets | ||
id: upload-linux-assets | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -49,28 +50,28 @@ jobs: | |
# This pulls from the `Create release` step above, referencing its ID to get its outputs object, | ||
# which includes an `upload_url`. See this blog post for more info: | ||
# https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./build/Linux/go-ecs-cleaner | ||
asset_name: go-ecs-cleaner-linux | ||
asset_path: ./build/Linux.zip | ||
asset_name: go-ecs-cleaner-linux.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload macOS binary | ||
id: upload-macos-binary | ||
- name: Upload macOS assets | ||
id: upload-macos-assets | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./build/macOS/go-ecs-cleaner | ||
asset_name: go-ecs-cleaner-darwin | ||
asset_path: ./build/macOS.zip | ||
asset_name: go-ecs-cleaner-macos.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload Windows binary | ||
id: upload-windows-binary | ||
- name: Upload Windows assets | ||
id: upload-windows-assets | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./build/Windows/go-ecs-cleaner.exe | ||
asset_name: go-ecs-cleaner-windows.exe | ||
asset_path: ./build/Windows.zip | ||
asset_name: go-ecs-cleaner-windows.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
vendor/github.com/golang-collections/collections/stack/stack.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.