Fix build
All checks were successful
Build on push / build-api (push) Successful in 7s
Build on push / build-web (push) Successful in 58s

This commit is contained in:
Sven Heidemann 2025-01-04 14:09:17 +01:00
parent c894f8eb10
commit 8df4afbf0e
3 changed files with 13 additions and 5 deletions

View File

@ -17,7 +17,8 @@ jobs:
- name: Build docker
run: |
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-api-dev:$(cat version.txt) .
cd api
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-api-dev:$(cat ../version.txt) .
- name: Login to registry git.sh-edraft.de
uses: https://github.com/docker/login-action@v1
@ -41,15 +42,18 @@ jobs:
- name: Prepare web build
run: |
cd web
npm ci
- name: Build web
run: |
cd web
npm run build
- name: Build docker
run: |
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-web:$(cat version.txt) .
cd web
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-web:$(cat ../version.txt) .
- name: Login to registry git.sh-edraft.de
uses: https://github.com/docker/login-action@v1

View File

@ -17,7 +17,8 @@ jobs:
- name: Build docker
run: |
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-api:$(cat version.txt) .
cd api
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-api:$(cat ../version.txt) .
- name: Login to registry git.sh-edraft.de
uses: https://github.com/docker/login-action@v1
@ -41,15 +42,18 @@ jobs:
- name: Prepare web build
run: |
cd web
npm ci
- name: Build web
run: |
cd web
npm run build
- name: Build docker
run: |
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-web:$(cat version.txt) .
cd web
docker build -t git.sh-edraft.de/sh-edraft.de/open-redirect-web:$(cat ../version.txt) .
- name: Login to registry git.sh-edraft.de
uses: https://github.com/docker/login-action@v1

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM python:3.12.7-alpine
FROM python:3.12.8-alpine
WORKDIR /app
COPY ./src/ .