feat(docker): extend CI to push images to Forgejo
Some checks failed
Docker CI/CD / Docker Build and Push (push) Failing after 5m44s
Some checks failed
Docker CI/CD / Docker Build and Push (push) Failing after 5m44s
Enhanced the CI pipeline for Docker images by supporting an additional push to the Forgejo Docker Registry alongside the existing push to Docker Hub. This change allows for better integration with private infrastructures and provides an alternative for users and systems that prefer or require images to be stored in a more controlled or private registry. It involves logging into both Docker Hub and Forgejo with respective credentials and pushing the built images to both, ensuring broader availability and redundancy of our Docker images.
This commit is contained in:
parent
bd0d6c5588
commit
35254a0b49
1 changed files with 12 additions and 1 deletions
|
@ -24,8 +24,19 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
- name: Build and push to Docker Hub
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: kumitterer/matrix-gptbot:latest
|
||||
- name: Log in to Forgejo Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.private.coffee
|
||||
username: ${{ secrets.GITHUB_ACTOR }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push to Forgejo Docker Registry
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: git.private.coffee/privatecoffee/matrix-gptbot:latest
|
Loading…
Reference in a new issue