Publish to Forgejo as well as to DockerHub
All checks were successful
/ build (push) Successful in 44s
All checks were successful
/ build (push) Successful in 44s
This commit is contained in:
parent
664a93822a
commit
25dacab234
2 changed files with 34 additions and 8 deletions
|
@ -5,6 +5,10 @@ on:
|
|||
env:
|
||||
REVISION: ${{ github.sha }}
|
||||
IMAGE_TAG: varakh/hetzner-storagebox-exporter
|
||||
IMAGE_TAG_PRIVATE: git.myservermanager.com/varakh/hetzner-storagebox-exporter
|
||||
FORGEJO_URL: https://git.myservermanager.com
|
||||
FORGEJO_FQDN: git.myservermanager.com
|
||||
FORGEJO_REPO: varakh/hetzner-storagebox-exporter
|
||||
VERSION_MAJOR: 1
|
||||
VERSION_MINOR: 0
|
||||
VERSION_PATCH: 0
|
||||
|
@ -25,6 +29,13 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Forgejo
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.FORGEJO_FQDN }}
|
||||
username: ${{ secrets.FORGEJO_USER }}
|
||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
@ -36,7 +47,11 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG }}:latest
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:latest
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG }}:latest
|
||||
|
|
|
@ -24,6 +24,13 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Forgejo
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.FORGEJO_FQDN }}
|
||||
username: ${{ secrets.FORGEJO_USER }}
|
||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
@ -35,7 +42,11 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG }}:latest
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG_PRIVATE }}:latest
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
|
||||
${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }}
|
||||
${{ env.IMAGE_TAG }}:latest
|
||||
|
|
Loading…
Reference in a new issue