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
938c90acda
commit
d3a3e199c7
1 changed files with 2 additions and 4 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -34,12 +34,10 @@ jobs:
|
|||
|
||||
- name: Set Registry based on GITHUB_SERVER_URL
|
||||
run: |
|
||||
if [[ "${{ github.server_url }}" == *"github.com"* ]]; then
|
||||
if [[ "${{ github.server_url }}" == "*github.com*" ]]; then
|
||||
echo "REGISTRY=ghcr.io" >> $GITHUB_ENV
|
||||
elif [[ "${{ github.server_url }}" == *"git.thecodedom.com"* ]]; then
|
||||
elif [[ "${{ github.server_url }}" == "*git.thecodedom.com"* ]]; then
|
||||
echo "REGISTRY=git.thecodedom.com" >> $GITHUB_ENV
|
||||
else
|
||||
echo "REGISTRY=ghcr.io" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "Registry is $REGISTRY"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue