Skip to content

Commit

Permalink
Add dockerhub to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruhlmann committed Nov 1, 2023
1 parent 1991737 commit ae5afbb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,26 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Registry
- name: Login to cr.kruhlmann.dev
uses: docker/login-action@v1
with:
registry: cr.kruhlmann.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

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

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: cr.kruhlmann.dev/classicdb_bot:latest

tags: |
cr.kruhlmann.dev/classicdb_bot:latest
cr.kruhlmann.dev/classicdb_bot:wotlk-latest
kruhlmann/classicdb_bot:latest
kruhlmann/classicdb_bot:wotlk-latest

0 comments on commit ae5afbb

Please sign in to comment.