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

View File

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

View File

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