Skip to content

Commit

Permalink
Merge pull request #1694 from jzelinskie/fix-docker
Browse files Browse the repository at this point in the history
.github: use public-read-only docker account
  • Loading branch information
jzelinskie committed Dec 21, 2023
2 parents 7549694 + ae4fcc0 commit 64c7c07
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "Build & Test"
on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
Expand All @@ -12,6 +12,8 @@ on: # yamllint disable-line rule:truthy
- "checks_requested"
env:
GO_VERSION: "~1.21.3"
DOCKERHUB_PUBLIC_ACCESS_TOKEN: "dckr_pat_8AEETZWxu8f7FvJUk9NrpyX_ZEQ"
DOCKERHUB_PUBLIC_USER: "spicedbgithubactions"
jobs:
paths-filter:
runs-on: "buildjet-2vcpu-ubuntu-2204"
Expand Down Expand Up @@ -53,11 +55,10 @@ jobs:
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "authzed/actions/docker-login@main"
- uses: "docker/login-action@v3"
with:
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"
github_token: "${{ secrets.GITHUB_TOKEN }}"
dockerhub_token: "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}"
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
password: "${{ env.DOCKERHUB_PUBLIC_ACCESS_TOKEN }}"
- uses: "authzed/actions/go-build@main"
- name: "Image tests"
run: "go run mage.go test:image"
Expand Down Expand Up @@ -87,11 +88,10 @@ jobs:
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "authzed/actions/docker-login@main"
- uses: "docker/login-action@v3"
with:
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"
github_token: "${{ secrets.GITHUB_TOKEN }}"
dockerhub_token: "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}"
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
password: "${{ env.DOCKERHUB_PUBLIC_ACCESS_TOKEN }}"
- name: "Integration tests"
run: "go run mage.go test:integration"

Expand All @@ -110,11 +110,10 @@ jobs:
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "authzed/actions/docker-login@main"
- uses: "docker/login-action@v3"
with:
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"
github_token: "${{ secrets.GITHUB_TOKEN }}"
dockerhub_token: "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}"
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
password: "${{ env.DOCKERHUB_PUBLIC_ACCESS_TOKEN }}"
- name: "Integration tests"
run: "go run mage.go testds:${{ matrix.datastore }}"
- name: "Integration tests"
Expand Down

0 comments on commit 64c7c07

Please sign in to comment.