Skip to content

Commit

Permalink
ci: add docker hub images
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Jan 21, 2024
1 parent 36201f0 commit cefc004
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ snapcrafts:

dockers:
- image_templates:
- "cerberauth/vulnapi:{{ .Tag }}"
- "cerberauth/vulnapi:v{{ .Major }}"
- "cerberauth/vulnapi:v{{ .Major }}.{{ .Minor }}"
- "cerberauth/vulnapi:latest"
- "ghcr.io/cerberauth/vulnapi:{{ .Tag }}"
- "ghcr.io/cerberauth/vulnapi:v{{ .Major }}"
- "ghcr.io/cerberauth/vulnapi:v{{ .Major }}.{{ .Minor }}"
Expand Down

0 comments on commit cefc004

Please sign in to comment.