|
@@ -28,9 +28,10 @@ on:
|
|
|
build-platform:
|
|
build-platform:
|
|
|
required: true
|
|
required: true
|
|
|
type: string
|
|
type: string
|
|
|
- secrets:
|
|
|
|
|
- GHCR_USERNAME:
|
|
|
|
|
|
|
+ username:
|
|
|
required: true
|
|
required: true
|
|
|
|
|
+ type: string
|
|
|
|
|
+ secrets:
|
|
|
GHCR_TOKEN:
|
|
GHCR_TOKEN:
|
|
|
required: true
|
|
required: true
|
|
|
|
|
|
|
@@ -48,6 +49,7 @@ jobs:
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: read
|
|
contents: read
|
|
|
packages: write
|
|
packages: write
|
|
|
|
|
+ id-token: write
|
|
|
outputs:
|
|
outputs:
|
|
|
image-tag: ${{ steps.container_info.outputs.image-tag }}
|
|
image-tag: ${{ steps.container_info.outputs.image-tag }}
|
|
|
steps:
|
|
steps:
|
|
@@ -87,8 +89,8 @@ jobs:
|
|
|
if: env.IS_FORK == 'false'
|
|
if: env.IS_FORK == 'false'
|
|
|
with:
|
|
with:
|
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
|
- username: ${{ github.actor }}
|
|
|
|
|
- password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
+ username: ${{ inputs.username }}
|
|
|
|
|
+ password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
|
|
|
- name: Get docker image tag
|
|
- name: Get docker image tag
|
|
|
id: container_info
|
|
id: container_info
|
|
@@ -154,6 +156,6 @@ jobs:
|
|
|
with:
|
|
with:
|
|
|
image-name: ${{ inputs.image-name }}
|
|
image-name: ${{ inputs.image-name }}
|
|
|
image-tag: ${{ needs.build-publish.outputs.image-tag }}
|
|
image-tag: ${{ needs.build-publish.outputs.image-tag }}
|
|
|
- GHCR_USERNAME: ${{ github.actor }}
|
|
|
|
|
- GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
+ GHCR_USERNAME: ${{ inputs.username }}
|
|
|
|
|
+ GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
|