Skip to content

Commit

Permalink
Merge pull request #872 from terascope/update-workflows-and-scripts
Browse files Browse the repository at this point in the history
Update workflows and scripts, make compatible with caching
  • Loading branch information
jsnoble authored Jul 31, 2024
2 parents e1145fe + 05d013f commit b64580a
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:

jobs:
call-asset-build:
uses: terascope/workflows/.github/workflows/asset-build-and-publish.yml@73a80a9e19cde53baf8a918e2c7c69bf39ca884a
uses: terascope/workflows/.github/workflows/asset-build-and-publish.yml@f5e098fa861fe7744fa61842e82124f806364be9
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/test-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ on:

jobs:
call-asset-test-workflow:
uses: terascope/workflows/.github/workflows/asset-test.yml@73a80a9e19cde53baf8a918e2c7c69bf39ca884a
uses: terascope/workflows/.github/workflows/asset-test.yml@f5e098fa861fe7744fa61842e82124f806364be9
secrets: inherit
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"build:watch": "tsc --build --watch",
"bump": "ts-scripts bump",
"bump-asset": "ts-scripts bump-asset",
"docker:limit": "./scripts/docker-limit-check.sh",
"docker:listImages": "ts-scripts images list",
"docker:saveImages": "ts-scripts images save",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts .",
"lint:fix": "yarn lint --fix",
"publish:changed": "./scripts/publish.sh",
Expand Down
8 changes: 8 additions & 0 deletions scripts/docker-limit-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
###
## This checks the docker rate limit
###
TOKEN=$(curl -Ss --user "$USER:$PASS" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
result=$(curl -Ss --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest)

echo "$result"
Loading

0 comments on commit b64580a

Please sign in to comment.