CI Test
Some checks failed
Build, Push & Deploy Angular App / 🏗️ Build Docker Image (push) Failing after 41s
Build, Push & Deploy Angular App / ⬆️ Push Image to Gitea Registry (push) Has been skipped
Build, Push & Deploy Angular App / 🚀 Deploy to Remote Server (push) Has been skipped

This commit is contained in:
Murat Özkorkmaz
2025-10-17 17:06:47 +02:00
parent 3bf68bfde0
commit 3cc7a73a49

View File

@@ -11,7 +11,7 @@ on:
jobs:
build:
name: 🏗️ Build Docker Image
runs-on: docker
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
@@ -32,7 +32,7 @@ jobs:
push:
name: ⬆️ Push Image to Gitea Registry
runs-on: docker
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Repository
@@ -54,7 +54,7 @@ jobs:
deploy:
name: 🚀 Deploy to Remote Server
runs-on: docker
runs-on: ubuntu-latest
needs: push
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
steps:
@@ -74,3 +74,23 @@ jobs:
docker rm angular-web-app || true
docker run -d --name angular-web-app -p 80:80 gitea.moz-tech.de/${{ secrets.CI_REGISTRY_USER }}/angular-web-app:latest
EOF
# deploy-prod:
# if: startsWith(github.ref, 'refs/tags/')
# deploy-staging:
# if: github.ref == 'refs/heads/dev'
# notify:
# name: 🔔 Notify Deployment Result
# runs-on: ubuntu-latest
# needs: [ deploy ]
# if: always()
# steps:
# - name: Send Discord Notification
# run: |
# STATUS=${{ job.status }}
# MESSAGE="🚀 *Angular-Web-App Deployment* (${{ github.ref_name }}) finished with status: **${STATUS}**"
# curl -H "Content-Type: application/json" \
# -X POST \
# -d "{\"content\": \"${MESSAGE}\"}" \
# ${{ secrets.DISCORD_WEBHOOK_URL }}