diff --git a/.github/package-template.yml b/.github/package-template.yml index 47583fc385..3021e4edde 100644 --- a/.github/package-template.yml +++ b/.github/package-template.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/amazon-ecr-credential-helper.yml b/.github/workflows/amazon-ecr-credential-helper.yml index 9040a6f2f0..605f3eee98 100644 --- a/.github/workflows/amazon-ecr-credential-helper.yml +++ b/.github/workflows/amazon-ecr-credential-helper.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/amtool.yml b/.github/workflows/amtool.yml index cfb9800e19..6c8296613f 100644 --- a/.github/workflows/amtool.yml +++ b/.github/workflows/amtool.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/argocd.yml b/.github/workflows/argocd.yml index 505ec6b806..72f886fbc6 100644 --- a/.github/workflows/argocd.yml +++ b/.github/workflows/argocd.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/assume-role.yml b/.github/workflows/assume-role.yml index a276e9516d..b394736bec 100644 --- a/.github/workflows/assume-role.yml +++ b/.github/workflows/assume-role.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/atlantis.yml b/.github/workflows/atlantis.yml index 48865f0ce6..d2b71848b5 100644 --- a/.github/workflows/atlantis.yml +++ b/.github/workflows/atlantis.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/atmos.yml b/.github/workflows/atmos.yml index a256e93557..d655cccf8c 100644 --- a/.github/workflows/atmos.yml +++ b/.github/workflows/atmos.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/awless.yml b/.github/workflows/awless.yml index 45b6060055..20e5855b43 100644 --- a/.github/workflows/awless.yml +++ b/.github/workflows/awless.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/aws-copilot-cli.yml b/.github/workflows/aws-copilot-cli.yml index a9cd8f51fd..7947b8f651 100644 --- a/.github/workflows/aws-copilot-cli.yml +++ b/.github/workflows/aws-copilot-cli.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/aws-iam-authenticator.yml b/.github/workflows/aws-iam-authenticator.yml index 86014b1689..d2afdb448a 100644 --- a/.github/workflows/aws-iam-authenticator.yml +++ b/.github/workflows/aws-iam-authenticator.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/aws-nuke.yml b/.github/workflows/aws-nuke.yml index 67fa57c049..3a232765a1 100644 --- a/.github/workflows/aws-nuke.yml +++ b/.github/workflows/aws-nuke.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/aws-vault.yml b/.github/workflows/aws-vault.yml index 8c12b6353e..d5c3878d06 100644 --- a/.github/workflows/aws-vault.yml +++ b/.github/workflows/aws-vault.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cfssl.yml b/.github/workflows/cfssl.yml index 2378b5642a..e8bed97344 100644 --- a/.github/workflows/cfssl.yml +++ b/.github/workflows/cfssl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cfssljson.yml b/.github/workflows/cfssljson.yml index 60c04ba6f9..c20fd1face 100644 --- a/.github/workflows/cfssljson.yml +++ b/.github/workflows/cfssljson.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/chamber.yml b/.github/workflows/chamber.yml index 678b06bf25..a8da571528 100644 --- a/.github/workflows/chamber.yml +++ b/.github/workflows/chamber.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cilium-cli.yml b/.github/workflows/cilium-cli.yml index a4dc3acfc8..fddd879bf0 100644 --- a/.github/workflows/cilium-cli.yml +++ b/.github/workflows/cilium-cli.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cli53.yml b/.github/workflows/cli53.yml index 4936d3964a..eb8d35b344 100644 --- a/.github/workflows/cli53.yml +++ b/.github/workflows/cli53.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cloud-nuke.yml b/.github/workflows/cloud-nuke.yml index 00dae988b8..34526ac1b7 100644 --- a/.github/workflows/cloud-nuke.yml +++ b/.github/workflows/cloud-nuke.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/cloudflared.yml b/.github/workflows/cloudflared.yml index ebf770364b..ffc6bbcb63 100644 --- a/.github/workflows/cloudflared.yml +++ b/.github/workflows/cloudflared.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/codefresh.yml b/.github/workflows/codefresh.yml index 680039fd06..1b404d2418 100644 --- a/.github/workflows/codefresh.yml +++ b/.github/workflows/codefresh.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/conftest.yml b/.github/workflows/conftest.yml index 18e3be22e5..52b430bddb 100644 --- a/.github/workflows/conftest.yml +++ b/.github/workflows/conftest.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/consul.yml b/.github/workflows/consul.yml index d2bbc6e926..889a15f4a2 100644 --- a/.github/workflows/consul.yml +++ b/.github/workflows/consul.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/ctop.yml b/.github/workflows/ctop.yml index c716f1cedf..440763ba0a 100644 --- a/.github/workflows/ctop.yml +++ b/.github/workflows/ctop.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/direnv.yml b/.github/workflows/direnv.yml index 671dca8ab0..4f47f54de6 100644 --- a/.github/workflows/direnv.yml +++ b/.github/workflows/direnv.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/doctl.yml b/.github/workflows/doctl.yml index 33332e1013..9f6992dce6 100644 --- a/.github/workflows/doctl.yml +++ b/.github/workflows/doctl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/ec2-instance-selector.yml b/.github/workflows/ec2-instance-selector.yml index 7ce1f3206c..001f10a129 100644 --- a/.github/workflows/ec2-instance-selector.yml +++ b/.github/workflows/ec2-instance-selector.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/ecspresso.yml b/.github/workflows/ecspresso.yml index 244dfc219e..b39613649b 100644 --- a/.github/workflows/ecspresso.yml +++ b/.github/workflows/ecspresso.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/emailcli.yml b/.github/workflows/emailcli.yml index 12523a9339..7845fa716d 100644 --- a/.github/workflows/emailcli.yml +++ b/.github/workflows/emailcli.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/envcli.yml b/.github/workflows/envcli.yml index acda721c62..ee66a73cb6 100644 --- a/.github/workflows/envcli.yml +++ b/.github/workflows/envcli.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index 5c0fb6cf9e..a13587bb7d 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/figurine.yml b/.github/workflows/figurine.yml index 7c36973891..1c523914f6 100644 --- a/.github/workflows/figurine.yml +++ b/.github/workflows/figurine.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/fzf.yml b/.github/workflows/fzf.yml index fc5175d9a0..05cebe2fdc 100644 --- a/.github/workflows/fzf.yml +++ b/.github/workflows/fzf.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gh.yml b/.github/workflows/gh.yml index 6938e5f046..0b839622fc 100644 --- a/.github/workflows/gh.yml +++ b/.github/workflows/gh.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/ghr.yml b/.github/workflows/ghr.yml index cc33f04edc..d23b28602f 100644 --- a/.github/workflows/ghr.yml +++ b/.github/workflows/ghr.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/github-commenter.yml b/.github/workflows/github-commenter.yml index 667d6c6835..6605709126 100644 --- a/.github/workflows/github-commenter.yml +++ b/.github/workflows/github-commenter.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 7550954fb0..8e690e0fb4 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/github-status-updater.yml b/.github/workflows/github-status-updater.yml index 4d1dce542f..a47c68e0bc 100644 --- a/.github/workflows/github-status-updater.yml +++ b/.github/workflows/github-status-updater.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 969fe4b2a0..89abcce5e3 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/go-jsonnet.yml b/.github/workflows/go-jsonnet.yml index 320230a149..5c697347de 100644 --- a/.github/workflows/go-jsonnet.yml +++ b/.github/workflows/go-jsonnet.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gomplate.yml b/.github/workflows/gomplate.yml index e4fc88804e..97dbfcc86d 100644 --- a/.github/workflows/gomplate.yml +++ b/.github/workflows/gomplate.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gonsul.yml b/.github/workflows/gonsul.yml index b9d9ecdd6e..c018a24424 100644 --- a/.github/workflows/gonsul.yml +++ b/.github/workflows/gonsul.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/goofys.yml b/.github/workflows/goofys.yml index 76f494c4b8..c87de745bb 100644 --- a/.github/workflows/goofys.yml +++ b/.github/workflows/goofys.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gosu.yml b/.github/workflows/gosu.yml index e90c1a4fdd..3b6354b9a2 100644 --- a/.github/workflows/gosu.yml +++ b/.github/workflows/gosu.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/gotop.yml b/.github/workflows/gotop.yml index 351be716c7..cc5daccf20 100644 --- a/.github/workflows/gotop.yml +++ b/.github/workflows/gotop.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/grpcurl.yml b/.github/workflows/grpcurl.yml index ed0b54b024..7e707a8846 100644 --- a/.github/workflows/grpcurl.yml +++ b/.github/workflows/grpcurl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/hcledit.yml b/.github/workflows/hcledit.yml index 8827aabc38..686b93ecc4 100644 --- a/.github/workflows/hcledit.yml +++ b/.github/workflows/hcledit.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index c10fac9b6f..90a8a7d6e3 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/helm2.yml b/.github/workflows/helm2.yml index e1e1b2e349..a5706994ab 100644 --- a/.github/workflows/helm2.yml +++ b/.github/workflows/helm2.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/helm3.yml b/.github/workflows/helm3.yml index 204574905b..508d16df7a 100644 --- a/.github/workflows/helm3.yml +++ b/.github/workflows/helm3.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index d1d5f506a3..2dfa55fe31 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/htmltest.yml b/.github/workflows/htmltest.yml index 698f1554f1..865a0ab55a 100644 --- a/.github/workflows/htmltest.yml +++ b/.github/workflows/htmltest.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 14410151f1..ec17d51ecf 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/infracost.yml b/.github/workflows/infracost.yml index 95928745cb..42dd9beb50 100644 --- a/.github/workflows/infracost.yml +++ b/.github/workflows/infracost.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/jp.yml b/.github/workflows/jp.yml index 57d0e94116..6de3810cef 100644 --- a/.github/workflows/jp.yml +++ b/.github/workflows/jp.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/json2hcl.yml b/.github/workflows/json2hcl.yml index 2e19511126..a40430ce8e 100644 --- a/.github/workflows/json2hcl.yml +++ b/.github/workflows/json2hcl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/jx.yml b/.github/workflows/jx.yml index 75518bcb65..b750a607df 100644 --- a/.github/workflows/jx.yml +++ b/.github/workflows/jx.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/k3d.yml b/.github/workflows/k3d.yml index 0ba8f79644..cffa3c0225 100644 --- a/.github/workflows/k3d.yml +++ b/.github/workflows/k3d.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/k6.yml b/.github/workflows/k6.yml index f8ad207fb6..55f5fa976d 100644 --- a/.github/workflows/k6.yml +++ b/.github/workflows/k6.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/k9s.yml b/.github/workflows/k9s.yml index 5e52bb8de4..b09fe8e7c1 100644 --- a/.github/workflows/k9s.yml +++ b/.github/workflows/k9s.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/katafygio.yml b/.github/workflows/katafygio.yml index f0d70d8b66..72f226f7c4 100644 --- a/.github/workflows/katafygio.yml +++ b/.github/workflows/katafygio.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kfctl.yml b/.github/workflows/kfctl.yml index 3e7e61a42b..6999f052fc 100644 --- a/.github/workflows/kfctl.yml +++ b/.github/workflows/kfctl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index 5f6c12c5b4..800461d75f 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kops.yml b/.github/workflows/kops.yml index 37478ef12a..aaf9f637c7 100644 --- a/.github/workflows/kops.yml +++ b/.github/workflows/kops.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/krew.yml b/.github/workflows/krew.yml index b69b4ebb64..6fb4a3601b 100644 --- a/.github/workflows/krew.yml +++ b/.github/workflows/krew.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubecron.yml b/.github/workflows/kubecron.yml index ba57ebe970..1aa0744e13 100644 --- a/.github/workflows/kubecron.yml +++ b/.github/workflows/kubecron.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.13.yml b/.github/workflows/kubectl-1.13.yml index dfbe125f79..fed136a44f 100644 --- a/.github/workflows/kubectl-1.13.yml +++ b/.github/workflows/kubectl-1.13.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.14.yml b/.github/workflows/kubectl-1.14.yml index 6d3763b5c8..a58d325712 100644 --- a/.github/workflows/kubectl-1.14.yml +++ b/.github/workflows/kubectl-1.14.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.15.yml b/.github/workflows/kubectl-1.15.yml index 52f8e458f7..023f396dba 100644 --- a/.github/workflows/kubectl-1.15.yml +++ b/.github/workflows/kubectl-1.15.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.16.yml b/.github/workflows/kubectl-1.16.yml index c9a226fb75..d5589d8fbf 100644 --- a/.github/workflows/kubectl-1.16.yml +++ b/.github/workflows/kubectl-1.16.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.17.yml b/.github/workflows/kubectl-1.17.yml index 5cb8533052..ea02431de6 100644 --- a/.github/workflows/kubectl-1.17.yml +++ b/.github/workflows/kubectl-1.17.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.18.yml b/.github/workflows/kubectl-1.18.yml index aa8c3d260e..8e422307bb 100644 --- a/.github/workflows/kubectl-1.18.yml +++ b/.github/workflows/kubectl-1.18.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.19.yml b/.github/workflows/kubectl-1.19.yml index 0011288957..d47d07676f 100644 --- a/.github/workflows/kubectl-1.19.yml +++ b/.github/workflows/kubectl-1.19.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.20.yml b/.github/workflows/kubectl-1.20.yml index 18128f5009..9024b051a6 100644 --- a/.github/workflows/kubectl-1.20.yml +++ b/.github/workflows/kubectl-1.20.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.21.yml b/.github/workflows/kubectl-1.21.yml index 19b1dd13d0..d1b1061330 100644 --- a/.github/workflows/kubectl-1.21.yml +++ b/.github/workflows/kubectl-1.21.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.22.yml b/.github/workflows/kubectl-1.22.yml index 2c4751298a..2ef50f4640 100644 --- a/.github/workflows/kubectl-1.22.yml +++ b/.github/workflows/kubectl-1.22.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.23.yml b/.github/workflows/kubectl-1.23.yml index e91aa2cb1f..e3e558f046 100644 --- a/.github/workflows/kubectl-1.23.yml +++ b/.github/workflows/kubectl-1.23.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.24.yml b/.github/workflows/kubectl-1.24.yml index ae0bb05001..d8cb8d7322 100644 --- a/.github/workflows/kubectl-1.24.yml +++ b/.github/workflows/kubectl-1.24.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.25.yml b/.github/workflows/kubectl-1.25.yml index 97a4ffb01d..f02ac5bd29 100644 --- a/.github/workflows/kubectl-1.25.yml +++ b/.github/workflows/kubectl-1.25.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.26.yml b/.github/workflows/kubectl-1.26.yml index cf38ff0706..fc8686c138 100644 --- a/.github/workflows/kubectl-1.26.yml +++ b/.github/workflows/kubectl-1.26.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.27.yml b/.github/workflows/kubectl-1.27.yml index ce92353ded..b1cd0f0115 100644 --- a/.github/workflows/kubectl-1.27.yml +++ b/.github/workflows/kubectl-1.27.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.28.yml b/.github/workflows/kubectl-1.28.yml index 68fd9a2535..b823e8b276 100644 --- a/.github/workflows/kubectl-1.28.yml +++ b/.github/workflows/kubectl-1.28.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.29.yml b/.github/workflows/kubectl-1.29.yml index 810a1f7c60..f5d04f0d48 100644 --- a/.github/workflows/kubectl-1.29.yml +++ b/.github/workflows/kubectl-1.29.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.30.yml b/.github/workflows/kubectl-1.30.yml index 931ff93d33..c102006a1e 100644 --- a/.github/workflows/kubectl-1.30.yml +++ b/.github/workflows/kubectl-1.30.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.31.yml b/.github/workflows/kubectl-1.31.yml index 34ab8deb76..3e662911a5 100644 --- a/.github/workflows/kubectl-1.31.yml +++ b/.github/workflows/kubectl-1.31.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl-1.32.yml b/.github/workflows/kubectl-1.32.yml index fda77ccfc5..e2b9a75a83 100644 --- a/.github/workflows/kubectl-1.32.yml +++ b/.github/workflows/kubectl-1.32.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectl.yml b/.github/workflows/kubectl.yml index 53d539f1df..557dcff6dc 100644 --- a/.github/workflows/kubectl.yml +++ b/.github/workflows/kubectl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubectx.yml b/.github/workflows/kubectx.yml index fc9103b52f..d6c754a967 100644 --- a/.github/workflows/kubectx.yml +++ b/.github/workflows/kubectx.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubens.yml b/.github/workflows/kubens.yml index b130e2068e..1c96d22b13 100644 --- a/.github/workflows/kubens.yml +++ b/.github/workflows/kubens.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/kubeval.yml b/.github/workflows/kubeval.yml index 11215537b3..09589ac716 100644 --- a/.github/workflows/kubeval.yml +++ b/.github/workflows/kubeval.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/lazydocker.yml b/.github/workflows/lazydocker.yml index 9c4f0204aa..e103fe5138 100644 --- a/.github/workflows/lazydocker.yml +++ b/.github/workflows/lazydocker.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/lectl.yml b/.github/workflows/lectl.yml index f5fb9b3d4a..263b45cf15 100644 --- a/.github/workflows/lectl.yml +++ b/.github/workflows/lectl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/minikube.yml b/.github/workflows/minikube.yml index 7212c17c32..7762fd28bb 100644 --- a/.github/workflows/minikube.yml +++ b/.github/workflows/minikube.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index 0ef339300a..1a591510f7 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/opa.yml b/.github/workflows/opa.yml index 4c5d30d787..dfe5f44840 100644 --- a/.github/workflows/opa.yml +++ b/.github/workflows/opa.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index e5872400d7..927f41d92d 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/packer.yml b/.github/workflows/packer.yml index fd298bf8f9..2ef7c0c8d2 100644 --- a/.github/workflows/packer.yml +++ b/.github/workflows/packer.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/pandoc.yml b/.github/workflows/pandoc.yml index a5bf6b6a95..a8ce6c4826 100644 --- a/.github/workflows/pandoc.yml +++ b/.github/workflows/pandoc.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/pgmetrics.yml b/.github/workflows/pgmetrics.yml index 831aed1736..43bf4e2732 100644 --- a/.github/workflows/pgmetrics.yml +++ b/.github/workflows/pgmetrics.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/pluto.yml b/.github/workflows/pluto.yml index 0d7be9e65d..e894ecd0fb 100644 --- a/.github/workflows/pluto.yml +++ b/.github/workflows/pluto.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/popeye.yml b/.github/workflows/popeye.yml index e83f5a03b5..0e49296bd4 100644 --- a/.github/workflows/popeye.yml +++ b/.github/workflows/popeye.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/promtool.yml b/.github/workflows/promtool.yml index 0f9d50fd63..5e703cdf3f 100644 --- a/.github/workflows/promtool.yml +++ b/.github/workflows/promtool.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/rainbow-text.yml b/.github/workflows/rainbow-text.yml index c0db8730df..fd6156a71c 100644 --- a/.github/workflows/rainbow-text.yml +++ b/.github/workflows/rainbow-text.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/rakkess.yml b/.github/workflows/rakkess.yml index 409e52c432..35f7ebffeb 100644 --- a/.github/workflows/rakkess.yml +++ b/.github/workflows/rakkess.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/rancher.yml b/.github/workflows/rancher.yml index e689a7070b..3ede466ac9 100644 --- a/.github/workflows/rancher.yml +++ b/.github/workflows/rancher.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/rbac-lookup.yml b/.github/workflows/rbac-lookup.yml index c35a3437fb..c765a820bc 100644 --- a/.github/workflows/rbac-lookup.yml +++ b/.github/workflows/rbac-lookup.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/saml2aws.yml b/.github/workflows/saml2aws.yml index c7028e3ab1..582b308e1e 100644 --- a/.github/workflows/saml2aws.yml +++ b/.github/workflows/saml2aws.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/sentry-cli.yml b/.github/workflows/sentry-cli.yml index a74a056f9f..b3e00f131e 100644 --- a/.github/workflows/sentry-cli.yml +++ b/.github/workflows/sentry-cli.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index eda65183b7..4164869c25 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/shfmt.yml b/.github/workflows/shfmt.yml index 58ce88dbeb..e8fa6243e0 100644 --- a/.github/workflows/shfmt.yml +++ b/.github/workflows/shfmt.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/slack-notifier.yml b/.github/workflows/slack-notifier.yml index 2ba53e334c..9aed3e49db 100644 --- a/.github/workflows/slack-notifier.yml +++ b/.github/workflows/slack-notifier.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/sops.yml b/.github/workflows/sops.yml index 74ec96ee4d..229d5e4080 100644 --- a/.github/workflows/sops.yml +++ b/.github/workflows/sops.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/spacectl.yml b/.github/workflows/spacectl.yml index f14e33a881..2d98c1f8d0 100644 --- a/.github/workflows/spacectl.yml +++ b/.github/workflows/spacectl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/spotctl.yml b/.github/workflows/spotctl.yml index 910e88cb38..153b314f41 100644 --- a/.github/workflows/spotctl.yml +++ b/.github/workflows/spotctl.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/sshm.yml b/.github/workflows/sshm.yml index 25b9ff420a..271dcb75d5 100644 --- a/.github/workflows/sshm.yml +++ b/.github/workflows/sshm.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/stern.yml b/.github/workflows/stern.yml index c37a6ff3f3..6d58ba7d71 100644 --- a/.github/workflows/stern.yml +++ b/.github/workflows/stern.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/sudosh.yml b/.github/workflows/sudosh.yml index d8e1fff72f..c7c39f8397 100644 --- a/.github/workflows/sudosh.yml +++ b/.github/workflows/sudosh.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/teleport-4.3.yml b/.github/workflows/teleport-4.3.yml index d4ff82da24..27e954dac0 100644 --- a/.github/workflows/teleport-4.3.yml +++ b/.github/workflows/teleport-4.3.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/teleport-4.4.yml b/.github/workflows/teleport-4.4.yml index a32275012f..bf309b45cd 100644 --- a/.github/workflows/teleport-4.4.yml +++ b/.github/workflows/teleport-4.4.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/teleport-5.0.yml b/.github/workflows/teleport-5.0.yml index db7f4fc12c..e1fcc5a227 100644 --- a/.github/workflows/teleport-5.0.yml +++ b/.github/workflows/teleport-5.0.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/teleport.yml b/.github/workflows/teleport.yml index 8eb197a4d1..c2a3e4d154 100644 --- a/.github/workflows/teleport.yml +++ b/.github/workflows/teleport.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-0.11.yml b/.github/workflows/terraform-0.11.yml index d6e8afbc83..566c7648bb 100644 --- a/.github/workflows/terraform-0.11.yml +++ b/.github/workflows/terraform-0.11.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-0.12.yml b/.github/workflows/terraform-0.12.yml index 9d136f3a5d..19cdb0b487 100644 --- a/.github/workflows/terraform-0.12.yml +++ b/.github/workflows/terraform-0.12.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-0.13.yml b/.github/workflows/terraform-0.13.yml index 756f85d7bf..c2e018d158 100644 --- a/.github/workflows/terraform-0.13.yml +++ b/.github/workflows/terraform-0.13.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-0.14.yml b/.github/workflows/terraform-0.14.yml index a9076851cf..612dedb7d7 100644 --- a/.github/workflows/terraform-0.14.yml +++ b/.github/workflows/terraform-0.14.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-0.15.yml b/.github/workflows/terraform-0.15.yml index 1854e60ca8..acac3997c4 100644 --- a/.github/workflows/terraform-0.15.yml +++ b/.github/workflows/terraform-0.15.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-1.yml b/.github/workflows/terraform-1.yml index 4bad8be01f..ee7e745611 100644 --- a/.github/workflows/terraform-1.yml +++ b/.github/workflows/terraform-1.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-config-inspect.yml b/.github/workflows/terraform-config-inspect.yml index 5455055f36..c282604a5c 100644 --- a/.github/workflows/terraform-config-inspect.yml +++ b/.github/workflows/terraform-config-inspect.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-docs.yml b/.github/workflows/terraform-docs.yml index 9ac944f77e..402fbb6072 100644 --- a/.github/workflows/terraform-docs.yml +++ b/.github/workflows/terraform-docs.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform-module-versions.yml b/.github/workflows/terraform-module-versions.yml index 8ebda7bbeb..6b4016acf0 100644 --- a/.github/workflows/terraform-module-versions.yml +++ b/.github/workflows/terraform-module-versions.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index db5a5413b1..56707ac175 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform_0.11.yml b/.github/workflows/terraform_0.11.yml index e6df455c8e..fe88942155 100644 --- a/.github/workflows/terraform_0.11.yml +++ b/.github/workflows/terraform_0.11.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform_0.12.yml b/.github/workflows/terraform_0.12.yml index 9852a41bf5..aa10b8bf08 100644 --- a/.github/workflows/terraform_0.12.yml +++ b/.github/workflows/terraform_0.12.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terraform_0.13.yml b/.github/workflows/terraform_0.13.yml index eb5693250b..448831e407 100644 --- a/.github/workflows/terraform_0.13.yml +++ b/.github/workflows/terraform_0.13.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terragrunt.yml b/.github/workflows/terragrunt.yml index c1881f14d5..c71f9044b6 100644 --- a/.github/workflows/terragrunt.yml +++ b/.github/workflows/terragrunt.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/terrahelp.yml b/.github/workflows/terrahelp.yml index bf6d1014e1..d0991c1692 100644 --- a/.github/workflows/terrahelp.yml +++ b/.github/workflows/terrahelp.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index 8bb303cc55..78840e343c 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/tfschema.yml b/.github/workflows/tfschema.yml index dc23c7331c..15bc1e2931 100644 --- a/.github/workflows/tfschema.yml +++ b/.github/workflows/tfschema.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml index 7fe1a5dd82..4e78fb7267 100644 --- a/.github/workflows/tfsec.yml +++ b/.github/workflows/tfsec.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/thanos.yml b/.github/workflows/thanos.yml index 0f67b2eb7a..c114871cf3 100644 --- a/.github/workflows/thanos.yml +++ b/.github/workflows/thanos.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 87dc7c57fd..f70dce1ca8 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/variant.yml b/.github/workflows/variant.yml index 2781b3e815..81272c4f2a 100644 --- a/.github/workflows/variant.yml +++ b/.github/workflows/variant.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/variant2.yml b/.github/workflows/variant2.yml index 78f4720e67..238314b423 100644 --- a/.github/workflows/variant2.yml +++ b/.github/workflows/variant2.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/vault.yml b/.github/workflows/vault.yml index 55b695ce73..6961ab9465 100644 --- a/.github/workflows/vault.yml +++ b/.github/workflows/vault.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/velero.yml b/.github/workflows/velero.yml index 371d8ed185..db4fee1577 100644 --- a/.github/workflows/velero.yml +++ b/.github/workflows/velero.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/vendir.yml b/.github/workflows/vendir.yml index f6b20a857a..e01bfb8e7b 100644 --- a/.github/workflows/vendir.yml +++ b/.github/workflows/vendir.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/venona.yml b/.github/workflows/venona.yml index f4919dbbaf..7cb76dbf13 100644 --- a/.github/workflows/venona.yml +++ b/.github/workflows/venona.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/vert.yml b/.github/workflows/vert.yml index 5b5a36d858..613d712753 100644 --- a/.github/workflows/vert.yml +++ b/.github/workflows/vert.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/yajsv.yml b/.github/workflows/yajsv.yml index 9f856c14d0..e5855b9d86 100644 --- a/.github/workflows/yajsv.yml +++ b/.github/workflows/yajsv.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/.github/workflows/yq.yml b/.github/workflows/yq.yml index f9a196883e..79a18ab5ca 100644 --- a/.github/workflows/yq.yml +++ b/.github/workflows/yq.yml @@ -151,6 +151,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' @@ -181,13 +186,13 @@ jobs: include: # Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be. # See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations - - runs-on: "self-hosted-arm64-large" + - runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64" # By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`. # This also forces the matrix to include `arch: amd64` even if it is not in the original matrix. # This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.) - arch: amd64 runs-on: "ubuntu-latest" - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }} env: # We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19 # Although the "workspace" is mounted to the container, it is not mounted @@ -253,6 +258,11 @@ jobs: # Publish the artifacts - name: "Push artifact to package repository" uses: cloudsmith-io/action@v0.6.10 + env: + # This is a hack. We need to hack the action by setting up a `curl` wrapper + # that injects the GIT_TOKEN into API requests so our rate limit is high enough + # that we do not have half the packages timing out. + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: api-key: ${{ secrets.CLOUDSMITH_API_KEY }} command: 'push' diff --git a/apk/Dockerfile-alpine b/apk/Dockerfile-alpine index 3d33cbd209..40e1d578ef 100644 --- a/apk/Dockerfile-alpine +++ b/apk/Dockerfile-alpine @@ -20,3 +20,10 @@ RUN apk update && \ apk add --update -U python3 python3-dev py3-pip libffi-dev gcc linux-headers musl-dev openssl-dev RUN echo "auth sufficient pam_shells.so" > /etc/pam.d/chsh + +# Add a wrapper script to authenticate curl requests when directed to GitHub API +COPY bin/curl-auth /usr/local/bin/curl-auth +RUN real_curl="$(which curl)" && \ + mv "${real_curl}" "${real_curl}".real && \ + mv /usr/local/bin/curl-auth "${real_curl}" && \ + chmod +x "${real_curl}" diff --git a/bin/curl-auth b/bin/curl-auth new file mode 100755 index 0000000000..980091cdca --- /dev/null +++ b/bin/curl-auth @@ -0,0 +1,26 @@ +#!/bin/bash + +# Authenticate with GitHub using a token when calling the API via curl +# Needed to get past rate limits with Cloudsmith GitHub action + +curl_wrapper() { + local args=("$@") + local url="" + + # Find the URL argument + for arg in "${args[@]}"; do + if [[ "$arg" =~ ^https?:// ]]; then + url="$arg" + break + fi + done + + # Check if URL is for api.github.com and GITHUB_TOKEN is set + if [[ -n "$GITHUB_TOKEN" && -n "$url" && "$url" =~ ^https?://api\.github\.com ]]; then + exec curl.real -H "Authorization: Bearer $GITHUB_TOKEN" "${args[@]}" + else + exec curl.real "${args[@]}" + fi +} + +curl_wrapper "$@" diff --git a/deb/Dockerfile.stable-slim b/deb/Dockerfile.stable-slim index 1757ede228..e7be39d3e5 100644 --- a/deb/Dockerfile.stable-slim +++ b/deb/Dockerfile.stable-slim @@ -27,6 +27,13 @@ RUN echo downloading go${GO_INSTALL_VERSION} && \ WORKDIR /packages +# Add a wrapper script to authenticate curl requests when directed to GitHub API +COPY bin/curl-auth /usr/local/bin/curl-auth +RUN real_curl="$(which curl)" && \ + mv "${real_curl}" "${real_curl}".real && \ + mv /usr/local/bin/curl-auth "${real_curl}" && \ + chmod +x "${real_curl}" + # Our base image is Python, with entrypoint into a Python shell, so we need to override the entrypoint ENTRYPOINT [] CMD ["/bin/bash"] diff --git a/rpm/Dockerfile.ubi b/rpm/Dockerfile.ubi index 6819d43dcd..1a86368f4d 100644 --- a/rpm/Dockerfile.ubi +++ b/rpm/Dockerfile.ubi @@ -24,3 +24,10 @@ RUN gem install --no-document fpm --ignore-dependencies -N WORKDIR /packages + +COPY bin/curl-auth /usr/local/bin/curl-auth +RUN real_curl="$(which curl)" && \ + mv "${real_curl}" "${real_curl}".real && \ + mv /usr/local/bin/curl-auth "${real_curl}" && \ + chmod +x "${real_curl}" +