-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f5c541
commit 2d79d46
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.17 | ||
- name: Checkout project sources | ||
uses: actions/checkout@v3 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Run build with Gradle Wrapper | ||
run: ./gradlew bootJar | ||
|
||
- name: Copy jar file | ||
run: cp build/libs/*.jar Docker | ||
|
||
- name: 'Login to GitHub Container Registry' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{github.actor}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: 'Build Latest Image' | ||
run: | | ||
docker build . --tag ghcr.io/maggiwuerze/xdccwebloader:snapshot -f Docker/Dockerfile | ||
docker push ghcr.io/maggiwuerze/xdccwebloader:snapshot |