Compare commits

...

8 commits

Author SHA1 Message Date
9ed08c11e3 use variable for registry
Some checks failed
Build and Push Docker Images / build (admin-dashboard) (push) Failing after 17s
Build and Push Docker Images / build (battleship) (push) Failing after 8s
Build and Push Docker Images / build (calculator) (push) Failing after 11s
Build and Push Docker Images / build (cv-project) (push) Failing after 9s
Build and Push Docker Images / build (inventory) (push) Failing after 9s
Build and Push Docker Images / build (library) (push) Failing after 11s
Build and Push Docker Images / build (messages) (push) Failing after 11s
Build and Push Docker Images / build (nodejs-mini-message-board) (push) Failing after 10s
Build and Push Docker Images / build (portfolio) (push) Failing after 10s
Build and Push Docker Images / build (restaurant) (push) Failing after 9s
Build and Push Docker Images / build (shopping-cart) (push) Failing after 10s
Build and Push Docker Images / build (signup_form) (push) Failing after 9s
Build and Push Docker Images / build (tictactoe) (push) Failing after 9s
Build and Push Docker Images / build (weather) (push) Failing after 11s
2025-05-03 13:23:36 +00:00
6fa2cb39c0 use variable for registry 2025-05-03 13:23:02 +00:00
907e6f3338 use variable for registry 2025-05-03 13:19:59 +00:00
3224db927b use variable for registry 2025-05-03 13:18:18 +00:00
cc1fd8e24d use variable for registry 2025-05-03 13:06:46 +00:00
829481c55e use variable for registry 2025-05-03 13:01:35 +00:00
d3a3e199c7 use variable for registry 2025-05-03 12:58:37 +00:00
938c90acda use variable for registry 2025-05-03 12:56:50 +00:00

View file

@ -32,13 +32,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Registry based on GITHUB_SERVER_URL
run: |
SERVER_URL="${{ github.server_url }}"
if [[ "${SERVER_URL}" =~ "github.com" ]]; then
echo "REGISTRY=ghcr.io" >> $GITHUB_ENV
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"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ github.registry }}
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}