Fix edit bug #496
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Request | |
on: | |
pull_request: | |
branches: | |
- "dev/v[0-9]+.[0-9]+.[0-9]+" | |
- "beta/v[0-9]+.[0-9]+.[0-9]+" | |
- "stable/v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
test_playwright: | |
name: Test Playwright - general | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- uses: actions/setup-node@v4 | |
- working-directory: frontend | |
run: npm i && npm run build | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- working-directory: backend | |
run: go build -o filebrowser . | |
- name: Build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./_docker/Dockerfile.playwright-general | |
push: false | |
test_playwright_proxy: | |
name: Test Playwright - proxy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- uses: actions/setup-node@v4 | |
- working-directory: frontend | |
run: npm i && npm run build | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- working-directory: backend | |
run: go build -o filebrowser . | |
- name: Build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./_docker/Dockerfile.playwright-proxy | |
push: false | |
test_playwright_noauth: | |
name: Test Playwright - noauth | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- uses: actions/setup-node@v4 | |
- working-directory: frontend | |
run: npm i && npm run build | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- working-directory: backend | |
run: go build -o filebrowser . | |
- name: Build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./_docker/Dockerfile.playwright-noauth | |
push: false | |
push_pr_to_registry: | |
name: Build docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: gtstef/filebrowser | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./_docker/Dockerfile.slim | |
push: false # Do not push the image for now | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
VERSION=${{ steps.meta.outputs.version }} | |
REVISION=${{ steps.meta.outputs.revision }} |