From bceb8d51d1c727e18a3665ae9f4ebdf76179e84a Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Mon, 15 Dec 2025 11:45:44 +0100 Subject: [PATCH] Moved to Forgejo infrastructure --- .../ISSUE_TEMPLATE/bug_report.md | 0 .../ISSUE_TEMPLATE/feature_request.md | 0 {.github => .forgejo}/PULL_REQUEST_TEMPLATE.md | 0 .../workflows/production-build.yml | 17 ++++++++++------- 4 files changed, 10 insertions(+), 7 deletions(-) rename {.github => .forgejo}/ISSUE_TEMPLATE/bug_report.md (100%) rename {.github => .forgejo}/ISSUE_TEMPLATE/feature_request.md (100%) rename {.github => .forgejo}/PULL_REQUEST_TEMPLATE.md (100%) rename .github/workflows/sonar.yml => .forgejo/workflows/production-build.yml (93%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.forgejo/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .forgejo/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.forgejo/ISSUE_TEMPLATE/feature_request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .forgejo/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.forgejo/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE.md rename to .forgejo/PULL_REQUEST_TEMPLATE.md diff --git a/.github/workflows/sonar.yml b/.forgejo/workflows/production-build.yml similarity index 93% rename from .github/workflows/sonar.yml rename to .forgejo/workflows/production-build.yml index 2b2a759..38b973e 100644 --- a/.github/workflows/sonar.yml +++ b/.forgejo/workflows/production-build.yml @@ -1,4 +1,4 @@ -name: Sonar +name: Production Build and Deploy permissions: contents: read pull-requests: write @@ -15,8 +15,8 @@ env: CONTAINER_NAME: glowing-fiesta OWNER: public jobs: - sonarqube: - name: SonarQube + build: + name: Build runs-on: node24 steps: - name: Setup Node environment @@ -50,9 +50,9 @@ jobs: path: .output/ overwrite: true include-hidden-files: true - docker-work: - name: Docker stuff - needs: sonarqube + deploy: + name: Deploy + needs: build runs-on: docker steps: - name: Setup Node environment @@ -92,7 +92,7 @@ jobs: # run: | # docker --version # docker info - - name: Build Docker image (pray) + - name: Build Docker image and push run: | echo [${{ env.CONTAINER_NAME }}:"${{ steps.prepare-env.outputs.VERSION }}", ${{ env.CONTAINER_NAME }}:latest] docker build -f ./devops/Dockerfile -t ${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }} -t ${{ env.CONTAINER_NAME }}:latest . @@ -100,5 +100,8 @@ jobs: docker image push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:latest docker image tag ${{ env.CONTAINER_NAME }}:latest ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }} docker image push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }} + - name: Server deploy + run: | + echo "Deploy to server not implemented yet." ####