Skip to content

Commit

Permalink
login to dockerhub so we don't hit rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 6, 2024
1 parent 3034eed commit 2bcb95d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
with:
persist-credentials: false

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: ${{ inputs.name }}
uses: ./.github/actions/build-and-test-feature
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-test-and-push-linux-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ jobs:
features: "${{ inputs.features }}"
container_env: "${{ inputs.container_env }}"

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: Build ${{ steps.json.outputs.tag }}-${{ matrix.arch }}
uses: ./.github/actions/build-linux-image
with:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/build-test-and-push-windows-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
tag=${version}-cuda${cuda}-cl${cl}-${{ inputs.os }}${{ matrix.edition }}
EOF
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: Build ${{ steps.info.outputs.tag }}
uses: ./.github/actions/build-windows-image
with:
Expand All @@ -79,13 +85,6 @@ jobs:
version: "${{ steps.info.outputs.version }}"
edition: "${{ matrix.edition }}"

- if: inputs.push == 'true'
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- if: inputs.push == 'true'
name: Push ${{ steps.info.outputs.tag }}
shell: powershell
Expand Down

0 comments on commit 2bcb95d

Please sign in to comment.