Skip to content

Commit

Permalink
ci(github): add docker hub login (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerenn authored Jul 22, 2024
1 parent bff62ec commit 9ca78a8
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Run tests
uses: dagger/dagger-for-github@v5
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: tests --src-dir .
Expand All @@ -34,8 +33,7 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Run examples
uses: dagger/dagger-for-github@v5
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: examples --src-dir .
Expand All @@ -51,8 +49,7 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Lint
uses: dagger/dagger-for-github@v5
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: lint --src-dir .
Expand All @@ -68,8 +65,7 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Lint
uses: dagger/dagger-for-github@v5
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: check-generation --src-dir .
Expand All @@ -88,12 +84,15 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/[email protected]
with:
go-version-file: go.mod
cache: true
- name: Publish on git
uses: dagger/dagger-for-github@v5
- uses: dagger/dagger-for-github@v5
with:
verb: call
args: publish --src-dir .
Expand Down

0 comments on commit 9ca78a8

Please sign in to comment.