mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Update push-docker.yml
This commit is contained in:
parent
c30022fb64
commit
587a934ae6
32
.github/workflows/push-docker.yml
vendored
32
.github/workflows/push-docker.yml
vendored
@ -21,32 +21,6 @@ jobs:
|
||||
distribution: temurin
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
name: Push Docker Image with VersionNumber
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
jobs:
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: "17"
|
||||
distribution: "temurin"
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-version: 8.7
|
||||
- name: Run Gradle Command
|
||||
run: ./gradlew clean build
|
||||
@ -78,11 +52,8 @@ jobs:
|
||||
images: |
|
||||
ghcr.io/${{ steps.repoowner.outputs.lowercase }}/s-pdf
|
||||
tags: >
|
||||
type=raw,value=${{ steps.versionNumber.outputs.versionNumber }},enable=${{
|
||||
github.ref == 'refs/heads/main' }}
|
||||
|
||||
type=raw,value=${{ steps.versionNumber.outputs.versionNumber }},enable=${{github.ref == 'refs/heads/main' }}
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
type=raw,value=alpha,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
- name: Build and push main Dockerfile
|
||||
uses: docker/build-push-action@v6
|
||||
@ -107,7 +78,6 @@ jobs:
|
||||
tags: >
|
||||
type=raw,value=${{ steps.versionNumber.outputs.versionNumber
|
||||
}}-ultra-lite,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
type=raw,value=latest-ultra-lite,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
- name: Build and push Dockerfile-ultra-lite
|
||||
uses: docker/build-push-action@v6
|
||||
|
Loading…
Reference in New Issue
Block a user