Skip to content

Commit

Permalink
Gamma v2.0 (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
Portals authored Nov 1, 2024
1 parent 91cecb0 commit 3b60d04
Show file tree
Hide file tree
Showing 1,052 changed files with 20,231 additions and 60,648 deletions.
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Gamma Devcontainer",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"remoteUser": "root",

"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "21",
"jdkDistro": "open"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
}
},

"forwardPorts": [8081],

"customizations" : {
"jetbrains" : {
"backend" : "IntelliJ"
}
}
}
31 changes: 31 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
volumes:
postgres-data:

services:
app:
image: mcr.microsoft.com/devcontainers/base:ubuntu-22.04
volumes:
- ../..:/workspaces:cached
command: sleep infinity

db:
container_name: db
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_PASSWORD: "postgres"
volumes:
- postgres-data:/var/lib/postgresql/data

redis:
container_name: redis
image: redis:5.0
restart: always

gotify:
container_name: gotify
image: cthit/gotify:latest
environment:
GOTIFY_PRE-SHARED-KEY: "123abc"
GOTIFY_MOCK-MODE: "true"
GOTIFY_DEBUG-MODE: "true"
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @portals @gurr1
* @portals
47 changes: 47 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Docker Image
on:
push:
branches: [dev]

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "adopt"

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/dev' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build-Tag-Push my-app
run: |
./gradlew bootBuildImage
docker tag gamma:2.0.0-SNAPSHOT ghcr.io/cthit/gamma:latest
docker push ghcr.io/cthit/gamma:latest
working-directory: ./app

- name: Cleanup Gradle Cache

# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
yarn-error.log
frontend/node_modules/
.idea/*
.DS_Store
uploads/
.run
1 change: 0 additions & 1 deletion .mailmap

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 3b60d04

Please sign in to comment.