Compare commits

..
0 Commits
6 changed files with 49 additions and 68 deletions

No files matched your search

-63
View File
@@ -1,63 +0,0 @@
name: Build Remsly
on:
push:
branches: [ main ]
jobs:
Build-Remsly-Backend:
runs-on: ubuntu-latest
container:
image: gitea.tail276105.ts.net/remslydev/ci-image:4
env:
DB_HOST_PORT: buildPostgres:5432
DB_USER: develop
DB_PASSWD: develop
DB_NAME: develop
services:
buildPostgres:
image: postgres:14-alpine
env:
POSTGRES_USER: develop
POSTGRES_PASSWORD: develop
POSTGRES_DB: develop
options: >-
--health-cmd="pg_isready -U develop -d develop -h 127.0.0.1"
--health-interval=10s
--health-timeout=5s
--health-retries=12
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build BE
run: ./gradlew build -PDB_HOST_PORT=buildPostgres:5432 -PDB_USER=develop -PDB_PASSWD=develop -PDB_NAME=develop;
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: gitea.tail276105.ts.net
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build Docker
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
(
cd backend;
docker build -t gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:${GITHUB_RUN_NUMBER} .;
docker tag gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:${GITHUB_RUN_NUMBER} gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:latest
)
- name: Push Docker Images
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
docker push gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:${GITHUB_RUN_NUMBER}
docker push gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:latest
- name: Docker imageTags
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
echo "versioned: gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:${GITHUB_RUN_NUMBER}"
echo "latest: gitea.tail276105.ts.net/${REPOSITORY_LC}-backend:latest"
- name: Log out from Docker registry
if: always()
run: docker logout gitea.tail276105.ts.net
+44
View File
@@ -0,0 +1,44 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
container:
image: eclipse-temurin:17
env:
DB_HOST_PORT: buildPostgres:5432
DB_USER: develop
DB_PASSWD: develop
DB_NAME: develop
services:
buildPostgres:
image: postgres:14-alpine
env:
POSTGRES_USER: develop
POSTGRES_PASSWORD: develop
POSTGRES_DB: develop
options: >-
--health-cmd="pg_isready -U develop -d develop -h 127.0.0.1"
--health-interval=10s
--health-timeout=5s
--health-retries=12
steps:
- run : uname -n
- run: echo $PATH
- run: printenv
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Check out repository code
uses: actions/checkout@v4
- name: Build BE
run: ./gradlew build -PDB_HOST_PORT=buildPostgres:5432 -PDB_USER=develop -PDB_PASSWD=develop -PDB_NAME=develop;
- run: cp backend/build/libs/backend-version.jar /mnt/space/share/backend-version.jar;
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
+1 -1
View File
@@ -1,3 +1,3 @@
FROM eclipse-temurin:17
FROM amazoncorretto:17
ADD build/libs/backend-version.jar boxit-backend.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-Xmx1024m","-jar","/boxit-backend.jar"]
@@ -147,7 +147,7 @@ IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
# Include ports.conf
Include ports.conf
# Sets the default security model of the Apache2 HTTPD server. It does
@@ -237,7 +237,7 @@ LimitRequestFieldSize 32760
ServerName ${SERVER_NAME}
Listen 80
#Listen 80
<VirtualHost *:80>
DocumentRoot "/var/www/html/app"
LogLevel ${APACHE_DEBUG_LEVEL}
+1 -1
View File
@@ -57,7 +57,7 @@ services:
- postgres
apache-oidc:
image: eiche:3000/remslydev/apacheoidc:latest
image: boxi.registry.jetbrains.space/p/boxit/containers/boxit-apache-oidc:0.0.3
restart: always
networks:
boxitNet:
+1 -1
View File
@@ -1,2 +1,2 @@
FROM gitea.tail276105.ts.net/remslydev/apacheoidc:2
FROM boxi.registry.jetbrains.space/p/boxit/containers/boxit-apache-oidc:0.0.6
ADD dist/frontend /var/www/html/app
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.