Skip to content

Commit

Permalink
add snapshot docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggiWuerze committed Dec 8, 2023
1 parent 0f5c541 commit 2d79d46
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-snapshot.yml
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

0 comments on commit 2d79d46

Please sign in to comment.