3 Commits

2 changed files with 11 additions and 8 deletions

View File

@ -9,12 +9,15 @@ jobs:
build:
runs-on: remote
steps:
- uses: https://git.simonis.lol/actions/checkout@v4
- uses: https://git.simonis.lol/actions/login@v1
with:
registry: git.simonis.lol
username: ${{ vars.DOCKER_USER }}
password: ${{ vars.DOCKER_PW }}
- name: Checkout
uses: https://git.simonis.lol/actions/checkout@v2
- name: build
run: docker build -t git.simonis.lol/sites/file-explorer:latest .
- name: Build
run: docker buildx build -t git.simonis.lol/projects/file-explorer:latest .
- name: Push
run: docker push git.simonis.lol/projects/file-explorer:latest
- name: push
run: docker push git.simonis.lol/sites/file-explorer:latest

View File

@ -14,7 +14,7 @@ class ServeFileController extends AbstractController
{
}
#[Route("/serve/{filePath}", name: "serve_file")]
#[Route("/serve-file/{filePath}", name: "serve_file")]
public function __invoke(string $filePath): BinaryFileResponse
{
$file = $this->fileSystemService->getFile($filePath);