Skip to content

Commit

Permalink
workflows/tests: login to DigitalOcean using doctl.
Browse files Browse the repository at this point in the history
This should fix the issues pushing on `main`.
  • Loading branch information
MikeMcQuaid committed Feb 13, 2024
1 parent 89242e6 commit de52f44
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ jobs:
- uses: docker/setup-buildx-action@v3

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
name: Login to DigitalOcean
uses: digitalocean/action-doctl@v2
- name: Login to GitHub Packages
uses: docker/login-action@v3
with:
token: ${{ secrets.DIGITAL_OCEAN_TOKEN }}
registry: ghcr.io
username: mikemcquaid
password: ${{ secrets.GITHUB_TOKEN }}

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
Expand All @@ -110,12 +110,15 @@ jobs:
password: ${{ secrets.DOCKER_TOKEN }}

# We don't give Dependabot access to tokens.
- name: Login to GitHub Packages
uses: docker/login-action@v3
- if: github.actor != 'dependabot[bot]'
name: Login to DigitalOcean
uses: digitalocean/action-doctl@v2
with:
registry: ghcr.io
username: mikemcquaid
password: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.DIGITAL_OCEAN_TOKEN }}

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
run: doctl registry login --expiry-seconds 300

- uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit de52f44

Please sign in to comment.