Move to new Lavaplayer fork (#71) #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: Gradle Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Docker Login | |
uses: docker/[email protected] | |
if: github.repository == 'freyacodes/ukulele' | |
with: | |
registry: ghcr.io | |
username: ${{github.repository_owner}} | |
password: ${{secrets.DOCKER_TOKEN}} | |
- uses: nelonoel/[email protected] | |
name: Get branch name | |
if: github.repository == 'freyacodes/ukulele' | |
- name: Docker build and push | |
uses: docker/[email protected] | |
if: github.repository == 'freyacodes/ukulele' | |
with: | |
tags: ghcr.io/freyacodes/ukulele:${{env.BRANCH_NAME}} | |
load: true | |
context: . | |
- run: docker push ghcr.io/freyacodes/ukulele:${{env.BRANCH_NAME}} | |
if: github.repository == 'freyacodes/ukulele' |