Use forgejo registry for the image
This commit is contained in:
parent
25cb5b9dba
commit
7afa5086fd
3 changed files with 8 additions and 19 deletions
|
@ -10,10 +10,7 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
# Use the github container registry
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
REGISTRY: forge.mdiluz.io
|
||||
|
||||
jobs:
|
||||
|
||||
|
@ -41,12 +38,6 @@ jobs:
|
|||
build-and-push-images:
|
||||
runs-on: ubuntu-22.04
|
||||
needs: test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
attestations: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -56,8 +47,8 @@ jobs:
|
|||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GH_PAT }}
|
||||
username: ${{ env.GITHUB_ACTOR }}
|
||||
password: ${{ secrets.PACKAGE_PAT }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
@ -66,7 +57,7 @@ jobs:
|
|||
id: meta
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
images: ${{ env.REGISTRY }}/${{ env.GITHUB_REPOSITORY }}
|
||||
tags: |
|
||||
type=ref,event=tag
|
||||
type=ref,event=branch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue