Use GITHUB_SERVER_URL to determine image registry
All checks were successful
Build / deploy (push) Successful in 52s
All checks were successful
Build / deploy (push) Successful in 52s
This commit is contained in:
parent
ee56ec87f2
commit
fecdf7e8f9
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,12 @@ jobs:
|
|||
deploy:
|
||||
runs-on: cicd
|
||||
steps:
|
||||
- name: Prepare
|
||||
id: prep
|
||||
run: |
|
||||
registry="${{ env.GITHUB_SERVER_URL }}"
|
||||
echo "registry=${registry#*://}" | tee "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
@ -22,7 +28,7 @@ jobs:
|
|||
- name: Push
|
||||
uses: 'https://github.com/redhat-actions/push-to-registry@v2'
|
||||
with:
|
||||
registry: code.porucha.net
|
||||
registry: ${{ steps.prep.outputs.registry }}
|
||||
image: ${{ steps.build.outputs.image }}
|
||||
tags: ${{ steps.build.outputs.tags }}
|
||||
username: ${{ vars.FORGEJO_USERNAME }}
|
||||
|
|
Loading…
Reference in a new issue