* Cleanup * Build auth provider * Implement discord login * Add jwt service + add liquibase * 🔨 Add jwt filter * 🔨 Update user info in db on login * 🔨 Add swagger * 🔨 Add dev container * 🔨 Add dev container * 🔨 Fix changelog ? * 🔨 Fix openApi * 🔨 Add guildcontroller with getMutualGuilds * 🔨 Change multual guilds url * 🔨 Add invite link api * 🔨 migrate env to config prop * 🔒 Add security expression for guild * 🔒 Add dev mode to auth * 🔨 Add textchannel and voicechannel endpoint * 🔨 Add setting description endpoint * 🔨 Add getRole endpoint * 🔨 Return only visible voice/text channels * 🔨 Add value endpoint * 🤖 Change ci * 🔨 Add canManage to guild list * 🚑 Load user of guild on load + fetch on api call for mutuals guilds * 🚑 Fix auto_voice_channel_title type * 🚑 Fix swagger url * 🚑 Fix setting type * 🔨 Add setting post * Fix blanck string in db * 🔨 Add music status api enpoint * 🚑 Fix permission * 🔨 Change interact condition * 🔨 Add connect api command * 🔨 Add disconnect endpoint * 🔨 Audio refracto * 🔨 Big refracto * 🔨 Refracto libs * 🔨 Rebuild http request with new client * 🔨 Refracto + add skip, pause, resume, stop endpoint * 🔨 Add endpoint * 🚑 Fix permission * Update build.yml * Update plugin org.liquibase.gradle to v2.1.1 [skip ci] (#186) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update plugin nebula.lint to v16.26.0 [skip ci] (#185) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency org.liquibase:liquibase-core to v4.12.0 [skip ci] (#184) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency org.liquibase.ext:liquibase-hibernate5 to v4.12.0 [skip ci] (#183) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update actions/checkout action to v3 [skip ci] (#187) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update actions/download-artifact action to v3 [skip ci] (#188) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * 🚑 Fix permission * Update tj-actions/branch-names action to v5.3 [skip ci] (#195) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update plugin nebula.lint to v17 [skip ci] (#194) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update docker/setup-buildx-action action to v2 [skip ci] (#193) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update docker/login-action action to v2 [skip ci] (#192) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update docker/build-push-action action to v3 [skip ci] (#191) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency openjdk to v18 [skip ci] (#190) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update actions/setup-java action to v3 [skip ci] (#189) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Clean for release * ⬆️ Update dependency org.apache.logging.log4j:log4j-bom to v2.17.2 (#198) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * ⬆️ Update dependency com.sedmelluq:lavaplayer to v1.3.78 (#197) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
# This workflow will build a Java project with Gradle
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- "renovate/**"
|
|
tags-ignore:
|
|
- "**"
|
|
|
|
jobs:
|
|
build-gradle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 17
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Upload Jar File
|
|
uses: actions/upload-artifact@v2-preview
|
|
with:
|
|
name: claptrap_jar
|
|
path: build/libs/
|
|
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- build-gradle
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Download artifact
|
|
uses: actions/download-artifact@v3.0.0
|
|
with:
|
|
# Artifact name
|
|
name: claptrap_jar
|
|
# Destination path
|
|
path: build/libs/
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to ghcr.io
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: Get branch name
|
|
id: branch-name
|
|
uses: tj-actions/branch-names@v5.3
|
|
|
|
- name: Set tag
|
|
run: |
|
|
echo "tag=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
|
|
|
- name: Build and push Docker
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
push: true
|
|
context: .
|
|
tags: "ghcr.io/sebclem/claptrapbot:${{ env.tag }}"
|
|
file: ./Dockerfile
|