Compare commits
31 Commits
4750c53b58
...
v0.38.15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8a22e63c9 | ||
|
|
e489f73f7c | ||
|
|
554b7774f6 | ||
|
|
86ea9d5b38 | ||
|
|
a61da34f2a | ||
|
|
225754dfe5 | ||
|
|
6e358fe1eb | ||
|
|
a2da2698e3 | ||
|
|
ee017d7ae6 | ||
|
|
b0b5211e88 | ||
|
|
c6f0220889 | ||
|
|
b1cd1cf0bf | ||
|
|
dab6504e71 | ||
|
|
e361e998b3 | ||
|
|
bc73625121 | ||
|
|
a2439f3619 | ||
|
|
edfb1b92cb | ||
|
|
1097e4c313 | ||
|
|
fe10a8d4b0 | ||
|
|
96da4ce1b0 | ||
|
|
6aad92a0c6 | ||
|
|
7fc7db0577 | ||
|
|
e5ed2d9556 | ||
|
|
fbe4e736c8 | ||
|
|
bc635d5b76 | ||
|
|
c3a9c69c91 | ||
|
|
b043bb9cc9 | ||
|
|
d9afa9b558 | ||
|
|
4f0b873bed | ||
|
|
fb067d5396 | ||
|
|
dbaf7c4880 |
102
.gitea/workflows/ci.yml
Normal file
102
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,102 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
|
||||
- name: Install phing
|
||||
run: composer global require phing/phing
|
||||
|
||||
- name: Run composer
|
||||
run: composer install --no-dev --no-scripts --ignore-platform-reqs -o
|
||||
|
||||
- name: Build tailwind
|
||||
run: APP_ENV=build php bin/console tailwind:build
|
||||
|
||||
- name: Install frontend assets
|
||||
run: APP_ENV=build php bin/console importmap:install
|
||||
|
||||
- name: Compile assets
|
||||
run: APP_ENV=build php bin/console asset-map:compile
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: "${{ vars.REGISTRY_URL }}"
|
||||
username: "${{ vars.REGISTRY_USER }}"
|
||||
password: "${{ vars.REGISTRY_PASS }}"
|
||||
|
||||
- name: Create torsearch-app docker image
|
||||
run: |
|
||||
tag="${{ gitea.REF_NAME }}"
|
||||
tmdb_api="${{ vars.TMDB_API }}"
|
||||
version=${tag:1}
|
||||
docker build --pull -f docker/Dockerfile.app \
|
||||
-t code.caldwell.digital/home/torsearch-app:${version} \
|
||||
-t code.caldwell.digital/home/torsearch-app:latest \
|
||||
--build-arg "APP_VERSION=${version}" \
|
||||
--build-arg "TMDB_API=${tmdb_api}" \
|
||||
.
|
||||
docker push code.caldwell.digital/home/torsearch-app:${version}
|
||||
docker push code.caldwell.digital/home/torsearch-app:latest
|
||||
|
||||
- name: Create torsearch-worker docker image
|
||||
run: |
|
||||
tag="${{ gitea.REF_NAME }}"
|
||||
tmdb_api="${{ vars.TMDB_API }}"
|
||||
version=${tag:1}
|
||||
docker build --pull -f docker/Dockerfile.worker \
|
||||
-t code.caldwell.digital/home/torsearch-worker:${version} \
|
||||
-t code.caldwell.digital/home/torsearch-worker:latest \
|
||||
--build-arg "APP_VERSION=${version}" \
|
||||
--build-arg "TMDB_API=${tmdb_api}" \
|
||||
.
|
||||
docker push code.caldwell.digital/home/torsearch-worker:${version}
|
||||
docker push code.caldwell.digital/home/torsearch-worker:latest
|
||||
|
||||
- name: Create torsearch-scheduler docker image
|
||||
run: |
|
||||
tag="${{ gitea.REF_NAME }}"
|
||||
tmdb_api="${{ vars.TMDB_API }}"
|
||||
version=${tag:1}
|
||||
docker build --pull -f docker/Dockerfile.scheduler \
|
||||
-t code.caldwell.digital/home/torsearch-scheduler:${version} \
|
||||
-t code.caldwell.digital/home/torsearch-scheduler:latest \
|
||||
--build-arg "APP_VERSION=${version}" \
|
||||
--build-arg "TMDB_API=${tmdb_api}" \
|
||||
.
|
||||
docker push code.caldwell.digital/home/torsearch-scheduler:${version}
|
||||
docker push code.caldwell.digital/home/torsearch-scheduler:latest
|
||||
|
||||
- name: Create artifact
|
||||
run: |
|
||||
file="torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||
touch $file
|
||||
tar -cvzf $file --exclude=$file .
|
||||
|
||||
- name: Create release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: |-
|
||||
"torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||
|
||||
# - name: Upload artifact
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||
# path: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||
# compression_level: 9
|
||||
@@ -1,29 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
|
||||
- name: Install phing
|
||||
run: composer global require phing/phing
|
||||
|
||||
- name: Run composer
|
||||
run: composer install --no-dev --no-scripts -o
|
||||
|
||||
- name: Build tailwind
|
||||
run: APP_ENV=build php bin/console tailwind:build
|
||||
|
||||
- name: Compile assets
|
||||
run: APP_ENV=build php bin/console asset-map:compile
|
||||
|
||||
@@ -15,6 +15,7 @@ FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
|
||||
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||
|
||||
# Set the APP_VERSION in the image
|
||||
ARG APP_VERSION="latest"
|
||||
ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
ARG TMDB_API=""
|
||||
|
||||
@@ -15,6 +15,7 @@ FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
|
||||
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||
|
||||
# Set the APP_VERSION in the image
|
||||
ARG APP_VERSION="latest"
|
||||
ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
ARG TMDB_API=""
|
||||
|
||||
Reference in New Issue
Block a user