Skip to content

Commit

Permalink
feature: CI setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jun 25, 2024
1 parent 2e8a09f commit c6129f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build docker

on:
push:
branches: [ "update/rewrite" ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
# Checkout the repo files
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

# Generate tailwind compiled css file
- name: Compile tailwind
run: ./gradlew backend:tailwindCompile
2 changes: 1 addition & 1 deletion backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {

tasks {

register<TailwindCompile>("tailwindBuild") {
register<TailwindCompile>("tailwindCompile") {
srcDir.set(project.sourceSets.main.get().kotlin.srcDirs.first())
resourcesDir.set(project.sourceSets.main.get().resources.srcDirs.first())
outputDir.set(rootDir.resolve("tailwind"))
Expand Down

0 comments on commit c6129f8

Please sign in to comment.