Test gitea actions
Some checks failed
build

This commit is contained in:
Administrator 2023-03-28 09:05:20 +02:00
parent 459771c806
commit 862c5a9b58
3 changed files with 7 additions and 6 deletions

View File

@ -78,14 +78,14 @@ jobs:
if: steps.changes.outputs.frontend == 'true'
uses: docker/build-push-action@v4
with:
file: frontend/Dockerfile
file: Dockerfile
context: "{{defaultContext}}:frontend"
platforms: linux/amd64
push: true
tags: ${{ steps.frontend-meta.outputs.tags }}
# API
- name: "[Frontend] Build and push"
- name: "[API] Build and push"
if: steps.changes.outputs.api == 'true'
uses: docker/build-push-action@v4
with:
@ -100,7 +100,7 @@ jobs:
if: steps.changes.outputs.bot == 'true'
uses: docker/build-push-action@v4
with:
file: telegram_bot/Dockerfile
file: Dockerfile
context: "{{defaultContext}}:telegram_bot"
platforms: linux/amd64
push: true

View File

@ -4,7 +4,7 @@ FROM node:latest as build
WORKDIR /usr/local/app
# Copy the project files to the container
COPY frontend/ /usr/local/app/
COPY . /usr/local/app/
# Install dependencies
RUN npm install
@ -16,8 +16,8 @@ FROM nginx:latest
COPY --from=build /usr/local/app/dist/aktienbot /usr/share/nginx/html
# Copy configuration files
COPY frontend/deploy/nginx.conf /etc/nginx
COPY frontend/deploy deploy/
COPY ./deploy/nginx.conf /etc/nginx
COPY ./deploy deploy/
# Change file permissions
RUN chmod +x ./deploy/healthcheck.sh

View File

@ -17,5 +17,6 @@ COPY . /srv/flask_app
# Change file permissions
RUN chmod +x ./deploy/start.sh
# Run the app
CMD ["./deploy/start.sh"]