From 3cc7a73a490cbb0f82242a2f5cebbaa10b86ba18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20O=CC=88zkorkmaz?= Date: Fri, 17 Oct 2025 17:06:47 +0200 Subject: [PATCH] CI Test --- .gitea/workflows/deploy.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0daa7d6..d9da24d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 }}