Moved to Forgejo infrastructure
This commit is contained in:
parent
b5b082bc5d
commit
30a89d6662
14 changed files with 1455 additions and 861 deletions
38
.forgejo/ISSUE_TEMPLATE/bug_report.md
Normal file
38
.forgejo/ISSUE_TEMPLATE/bug_report.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
20
.forgejo/ISSUE_TEMPLATE/feature_request.md
Normal file
20
.forgejo/ISSUE_TEMPLATE/feature_request.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
11
.forgejo/PULL_REQUEST_TEMPLATE.md
Normal file
11
.forgejo/PULL_REQUEST_TEMPLATE.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
## Description
|
||||
|
||||
### Proposed Changes
|
||||
|
||||
-
|
||||
-
|
||||
|
||||
### Checklist before submitting
|
||||
|
||||
- [ ] I followed the guidelines in our [Contributing document](https://github.com/lburcusel/glowing-fiesta/blob/production/CONTRIBUTING.md)
|
||||
- [ ] My submission pass all tests
|
||||
107
.forgejo/workflows/production-build.yml
Normal file
107
.forgejo/workflows/production-build.yml
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
name: Production Build and Deploy
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- production
|
||||
pull_request:
|
||||
branches:
|
||||
- production
|
||||
types: [opened, synchronize, reopened]
|
||||
env:
|
||||
FORGEJO_HOST: git.burcusel.nl
|
||||
CONTAINER_NAME: glowing-fiesta
|
||||
OWNER: public
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: node24
|
||||
steps:
|
||||
- name: Setup Node environment
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "24"
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run tests and generate coverage
|
||||
run: npm run coverage
|
||||
# continue-on-error: true
|
||||
# env:
|
||||
# CI: true
|
||||
- name: SonarQube Scan
|
||||
uses: https://github.com/SonarSource/sonarqube-scan-action@v6
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
- name: Build site
|
||||
env:
|
||||
NITRO_PRESET: node_cluster
|
||||
run: npm run build
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: output
|
||||
path: .output/
|
||||
overwrite: true
|
||||
include-hidden-files: true
|
||||
deploy:
|
||||
name: Deploy
|
||||
needs: build
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Setup Node environment
|
||||
run: |
|
||||
apk add --update nodejs npm
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Prepare environment variables
|
||||
id: prepare-env
|
||||
run: |
|
||||
echo REGISTRY=${{ env.FORGEJO_HOST }} >> $GITHUB_ENV
|
||||
echo CONTAINER_NAME=${{ env.CONTAINER_NAME }} >> $GITHUB_ENV
|
||||
echo VERSION=$(node -p "require('./package.json').version")
|
||||
echo VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_OUTPUT"
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: output
|
||||
path: ./output
|
||||
- name: Login to the registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PACKAGING_TOKEN }}
|
||||
# - name: Build and push
|
||||
# uses: docker/build-push-action@v6
|
||||
# with:
|
||||
# context: context
|
||||
# push: true
|
||||
# provenance: false
|
||||
# tags: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
|
||||
|
||||
# - name: check docker
|
||||
# run: |
|
||||
# docker --version
|
||||
# docker info
|
||||
- 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 .
|
||||
docker image tag ${{ env.CONTAINER_NAME }}:latest ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:latest
|
||||
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."
|
||||
|
||||
####
|
||||
Loading…
Add table
Add a link
Reference in a new issue