Merge branch 'main' into add-authentik-sso

This commit is contained in:
egelhaus 2025-04-14 02:32:11 +02:00 committed by GitHub
commit a9ffcec712
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 31 additions and 36 deletions

30
.github/workflows/pr-docker-build.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Build and Publish PR Docker Image
on:
pull_request:
types: [opened, synchronize]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Set image tag
id: vars
run: echo "IMAGE_TAG=ghcr.io/gitroomhq/postiz-app-pr:${{ github.event.pull_request.number }}" >> $GITHUB_ENV
- name: Build Docker image from Dockerfile.dev
run: docker build -f Dockerfile.dev -t $IMAGE_TAG .
- name: Push Docker image to GHCR
run: docker push $IMAGE_TAG

View File

@ -44,7 +44,7 @@ This project follows a Fork/Feature Branch/Pull Request model. If you're not fam
```bash
git push -u origin feature/your-feature-name
```
9. **Create a pull request**: Propose your changes **to the dev branch**.
9. **Create a pull request**: Propose your changes **to the main branch**.
# Need Help?

35
Jenkinsfile vendored
View File

@ -6,23 +6,6 @@ pipeline {
}
stages {
stage('Fetch Cache') {
options {
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./.nx/cache"
)
], defaultBranch: 'dev', maxCacheSize: 256000, skipSave: true)
}
steps {
echo 'Start fetching Cache.'
}
}
stage('Checkout Repository') {
steps {
checkout scm
@ -55,25 +38,7 @@ pipeline {
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
}
}
stage('Save Cache') {
options {
cache(caches: [
arbitraryFileCache(
cacheName: 'Next',
cacheValidityDecidingFile: '',
excludes: '',
includes: '**/*',
path: "./.nx/cache"
)
], defaultBranch: 'dev', maxCacheSize: 256000, skipRestore: true)
}
steps {
echo 'Start saving Cache.'
}
}
}
post {
always {
junit '**/reports/junit.xml'