lets hope this works
This commit is contained in:
parent
ad82dbd409
commit
f8881deb66
5 changed files with 39 additions and 8 deletions
25
.github/workflows/root.yml
vendored
25
.github/workflows/root.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue