refactor: move REGISTRY environment variable to job scope and correct step indentation.
Build & Push Hospitality / build-and-push (push) Successful in 2m10s

This commit is contained in:
steinhelge
2025-11-25 19:51:35 +01:00
parent bdfdcbe0f7
commit 07af11b541
+3 -4
View File
@@ -7,12 +7,11 @@ on:
- dev - dev
env:
REGISTRY: gitea.theriise.net/steinhelge
jobs: jobs:
build-and-push: build-and-push:
runs-on: self-hosted runs-on: self-hosted
env:
REGISTRY: gitea.theriise.net/steinhelge
steps: steps:
- name: Checkout - name: Checkout
@@ -79,7 +78,7 @@ jobs:
run: | run: |
docker push $REGISTRY/hospitality-api:${TAG} docker push $REGISTRY/hospitality-api:${TAG}
- name: Deploy containers - name: Deploy containers
run: | run: |
if [ "$TAG" = "dev" ]; then if [ "$TAG" = "dev" ]; then
echo "Deploying DEV til /srv/hospitality-dev" echo "Deploying DEV til /srv/hospitality-dev"