Compare commits
1 Commits
0.4.3
...
9494cae59b
| Author | SHA1 | Date | |
|---|---|---|---|
|
9494cae59b
|
@@ -3,7 +3,7 @@ name: release-tag
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
release-image:
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: "" # See https://gitea.com/gitea/act_runner/issues/119
|
||||
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
||||
IMAGE_NAME: gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}
|
||||
with:
|
||||
context: .
|
||||
@@ -62,10 +62,10 @@ jobs:
|
||||
DOCKER_COMPOSE: IMAGE_TAG=${{ gitea.ref_name }} docker compose --ansi=never -f=compose.yaml -f=compose.prod.yaml
|
||||
uses: https://github.com/appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ vars.HOST }}
|
||||
username: ${{ vars.USERNAME }}
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.KEY }}
|
||||
port: ${{ vars.PORT }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd /opt/projectorpi-web
|
||||
${{ env.DOCKER_COMPOSE }} pull
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM docker.io/python:3.12-slim AS base
|
||||
FROM docker.io/python:3.11-slim AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS dev
|
||||
FROM base as dev
|
||||
|
||||
RUN pip3 install poetry
|
||||
|
||||
@@ -10,16 +10,14 @@ ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||
|
||||
CMD [ "poetry", "run", "uvicorn", "--app-dir", "projectorpi_web", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
||||
FROM base AS prod
|
||||
FROM base as prod
|
||||
|
||||
ADD requirements.txt ./
|
||||
|
||||
RUN apt-get update && apt-get install -y build-essential cargo \
|
||||
RUN apt-get update && apt-get install -y build-essential \
|
||||
&& pip3 install --no-cache --upgrade pip \
|
||||
&& pip3 install --no-cache -r requirements.txt \
|
||||
&& rm /usr/local/bin/cargo \
|
||||
&& apt-get remove -y build-essential cargo
|
||||
|
||||
&& apt-get remove -y build-essential
|
||||
|
||||
ADD projectorpi_web ./projectorpi_web
|
||||
|
||||
|
||||
Reference in New Issue
Block a user