This commit was merged in pull request #2.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_COMPOSE: IMAGE_TAG=${{ gitea.ref_name }} docker compose --ansi=never -f=compose.yaml -f=compose.prod.yaml
|
||||
steps:
|
||||
@@ -47,3 +47,5 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
||||
cache-from: type=registry,ref=gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:buildcache
|
||||
cache-to: type=registry,ref=gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:buildcache,mode=max
|
||||
|
||||
@@ -50,6 +50,8 @@ jobs:
|
||||
tags: |
|
||||
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
|
||||
cache-from: type=registry,ref=gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:buildcache
|
||||
cache-to: type=registry,ref=gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:buildcache,mode=max
|
||||
|
||||
- name: Deploy Image to Sever
|
||||
id: deploy
|
||||
|
||||
@@ -13,8 +13,8 @@ FROM base as prod
|
||||
ADD requirements.txt ./
|
||||
|
||||
RUN apt-get update && apt-get install -y build-essential \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip3 install -r requirements.txt \
|
||||
&& pip3 install --no-cache --upgrade pip \
|
||||
&& pip3 install --no-cache -r requirements.txt \
|
||||
&& apt-get remove -y build-essential
|
||||
|
||||
ADD projectorpi_web/* ./
|
||||
|
||||
Reference in New Issue
Block a user