changed if condition on the workflow
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
|||||||
# --- STAGE 2: BUILD & PUBLISH (Only on Main) ---
|
# --- STAGE 2: BUILD & PUBLISH (Only on Main) ---
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
needs: test
|
needs: test
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
@@ -49,4 +49,4 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: gitea.starfour.de/${{ github.repository }}:latest
|
tags: gitea.starfour.de/${{ gitea.repository }}:latest
|
||||||
Reference in New Issue
Block a user