lets hope this works

This commit is contained in:
Jannik Reimers 2025-04-03 16:13:21 +02:00
parent ad82dbd409
commit f8881deb66
Signed by: jansel
GPG key ID: 39C62D7D5233CFD0
5 changed files with 39 additions and 8 deletions

View file

@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin
- name: Gradle (Setup)
@ -41,3 +41,26 @@ jobs:
with:
name: JARs
path: build/libs/*.jar
- name: Login to DigitalOcean Registry
uses: docker/login-action@v3
with:
registry: registry.digitalocean.com
username: ${{ secrets.DOMAIL }}
password: ${{ secrets.DOKEY }}
- name: Build the Docker image
run: docker build -t registry.digitalocean.com/jansel/feixiao:latest -t registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }} .
- name: Push the Docker image related to this workflow
run: docker push registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }}
- name: Push the latest Docker image
run: docker push registry.digitalocean.com/jansel/feixiao:latest
- name: Remove the Docker image
run: docker rmi registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }}
- name: Force remove the latest Docker image
run: docker rmi registry.digitalocean.com/jansel/feixiao:latest --force