-
Notifications
You must be signed in to change notification settings - Fork 16
Workflow Examples
Cyril Rohr edited this page Feb 6, 2026
·
17 revisions
name: PullPreview
on:
schedule:
- cron: "30 */4 * * *"
push:
branches: [master]
pull_request:
types: [labeled, unlabeled, synchronize, closed, reopened, opened]
concurrency: ${{ github.ref }}
permissions:
contents: read
pull-requests: write
jobs:
deploy:
if: github.event_name == 'push' || (github.event.action != 'closed' && github.event.action != 'unlabeled' && (github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')))
runs-on: ubuntu-slim
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: pullpreview/action@v6
with:
admins: "@collaborators/push"
always_on: master
app_path: .
instance_type: micro
ttl: 1h
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1- uses: pullpreview/action@v6
with:
app_path: .
proxy_tls: web:8080
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- uses: pullpreview/action@v6
with:
app_path: .
registries: docker://${{ secrets.GHCR_PAT }}@ghcr.io
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- uses: pullpreview/action@v6
with:
compose_files: docker-compose.yml,docker-compose.pullpreview.yml
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}