6 Commits
2.0.0 ... 0.2.1

Author SHA1 Message Date
20535317c7 Update .gitea/workflows/release-tag.yml
All checks were successful
release-nightly / release-image (push) Successful in 17m29s
release-tag / release-image (push) Successful in 19m44s
2023-08-22 09:22:12 +02:00
4c94209a45 Update .gitea/workflows/release-nightly.yml 2023-08-22 09:21:43 +02:00
f97426956a Boring cache
Some checks failed
release-nightly / release-image (push) Failing after 18m20s
2023-08-22 08:50:40 +02:00
fa067061b3 Cache again
Some checks failed
release-nightly / release-image (push) Failing after 17m29s
2023-08-21 23:59:34 +02:00
cfa0055488 More!
Some checks failed
release-nightly / release-image (push) Failing after 17m30s
2023-08-21 23:15:53 +02:00
27437c87ac New Deploy action 2023-08-21 23:03:42 +02:00
4 changed files with 31 additions and 10 deletions

View File

@@ -10,7 +10,6 @@ jobs:
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
env: env:
DOCKER_ORG: gitea
DOCKER_LATEST: nightly DOCKER_LATEST: nightly
steps: steps:
- name: Checkout - name: Checkout
@@ -40,12 +39,16 @@ jobs:
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
env: 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: with:
context: . context: .
file: ./Containerfile file: ./Containerfile
platforms: | platforms: |
linux/amd64
linux/arm/v7 linux/arm/v7
push: true push: true
tags: | tags: |
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} ${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }}
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }}
# cache-to: type:inline
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache
# cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max

View File

@@ -11,7 +11,6 @@ jobs:
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
env: env:
DOCKER_ORG: marijn
DOCKER_LATEST: latest DOCKER_LATEST: latest
steps: steps:
- name: Checkout - name: Checkout
@@ -42,13 +41,32 @@ jobs:
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
env: 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: with:
context: . context: .
file: ./Containerfile file: ./Containerfile
platforms: | platforms: |
linux/arm64
linux/arm/v7 linux/arm/v7
push: true push: true
tags: | tags: |
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} ${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
gitea.marijndoeve.nl/marijn/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} ${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }}
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }}
# cache-to: type:inline
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache
# cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max
- name: Deploy Image to Sever
id: deploy
env:
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: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /opt/projectorpi-web
${{ env.DOCKER_COMPOSE }} pull
${{ env.DOCKER_COMPOSE }} up -d

View File

@@ -13,8 +13,8 @@ FROM base as prod
ADD requirements.txt ./ ADD requirements.txt ./
RUN apt-get update && apt-get install -y build-essential \ RUN apt-get update && apt-get install -y build-essential \
&& pip install --upgrade pip \ && pip3 install --no-cache --upgrade pip \
&& pip3 install -r requirements.txt \ && pip3 install --no-cache -r requirements.txt \
&& apt-get remove -y build-essential && apt-get remove -y build-essential
ADD projectorpi_web/* ./ ADD projectorpi_web/* ./

View File

@@ -1,3 +1,3 @@
services: services:
app: app:
image: gitea.marijndoeve.nl/marijn/projectorpi-web:${IMAGE_TAG:-nightly} image: gitea.marijndoeve.nl/marijn/projectorpi-web:${IMAGE_TAG:-latest}