diff --git a/.gitea/workflows/backed_build-image.yaml b/.gitea/workflows/backed_build-image.yaml new file mode 100644 index 0000000..9f062e5 --- /dev/null +++ b/.gitea/workflows/backed_build-image.yaml @@ -0,0 +1,30 @@ +on: + pull_request: + branches: + - main + +name: Build and push docker image + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + + - uses: https://gitea.com/actions/checkout@v4 + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.kluster.moll.re + username: ${{ gitea.repository_owner }} + password: ${{ secrets.GITEA_TOKEN}} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: backend + tags: git.kluster.moll.re/renoll/fast_network_navigation/backend:latest diff --git a/.gitea/workflows/frontend_build-android.yaml b/.gitea/workflows/frontend_build-android.yaml index de430ce..99ce9b1 100644 --- a/.gitea/workflows/frontend_build-android.yaml +++ b/.gitea/workflows/frontend_build-android.yaml @@ -8,7 +8,7 @@ name: Build and release APK jobs: build: name: Build APK - runs-on: k8s + runs-on: ubuntu-latest steps: - name: Install prerequisites diff --git a/backend/Dockerfile b/backend/Dockerfile index 1535818..79dbe76 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,10 +1,10 @@ FROM python:3 WORKDIR /app -COPY Pipfile Pipfile.lock /app/ +COPY Pipfile Pipfile.lock . RUN pip install pipenv -RUN pipenv install --deploy --ignore-pipfile +RUN pipenv install --deploy --system COPY . /src