mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 11:20:40 -04:00
use variable for registry
This commit is contained in:
parent
d3a3e199c7
commit
829481c55e
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -34,10 +34,13 @@ jobs:
|
|||
|
||||
- name: Set Registry based on GITHUB_SERVER_URL
|
||||
run: |
|
||||
if [[ "${{ github.server_url }}" == "*github.com*" ]]; then
|
||||
SERVER_URL="${{ github.server_url }}"
|
||||
if [[ "${SERVER_URL}" == "*github.com*" ]]; then
|
||||
echo "REGISTRY=ghcr.io" >> $GITHUB_ENV
|
||||
elif [[ "${{ github.server_url }}" == "*git.thecodedom.com"* ]]; then
|
||||
REGISTRY=ghcr.io
|
||||
elif [[ "${SERVER_URL}" == "*git.thecodedom.com"* ]]; then
|
||||
echo "REGISTRY=git.thecodedom.com" >> $GITHUB_ENV
|
||||
REGISTRY=git.thecodedom.com
|
||||
fi
|
||||
echo "Registry is $REGISTRY"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue