From 70dafac03aa7b1c66a913f5028d3afa2ec53a0f4 Mon Sep 17 00:00:00 2001 From: Sabi Polikar Date: Thu, 1 May 2025 15:32:58 +0300 Subject: [PATCH] InitialCreate1 --- .gitea/workflows/prod.yaml | 21 +++++++++++++++++++++ README.md | 1 + 2 files changed, 22 insertions(+) create mode 100644 .gitea/workflows/prod.yaml create mode 100644 README.md diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml new file mode 100644 index 0000000..a3afe0d --- /dev/null +++ b/.gitea/workflows/prod.yaml @@ -0,0 +1,21 @@ +name: ASP.NET Core CI/Deploy +run-name: ${{ gitea.actor }} is testing out gitea Actions 🚀 +on: + push: + branches: + - "main" +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: ls -a + - run: docker compose -f docker-compose.yaml down + - name: Remove all un-used container and images + run: docker system prune -af + - run: docker compose -f docker-compose.yaml up -d --build --force-recreate + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..6741c86 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# ConstructorApp \ No newline at end of file