Skip to content

Commit

Permalink
Tweak GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Dec 13, 2024
1 parent 22e675f commit 639834a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 11
distribution: temurin
cache: maven
- name: Package
id: package
run: $MVN package -DskipTests -P prod,theme-wildfly
run: $MVN package -P prod,theme-wildfly
- name: Set up Maven Settings
id: setup-maven-settings
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: 17
java-version: 11
distribution: temurin
server-id: ossrh
server-username: OSSRH_USERNAME
Expand All @@ -39,7 +39,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Deploy
id: deploy
run: $MVN -DskipTests deploy -P prod,release,theme-wildfly
run: $MVN deploy -P prod,release,theme-wildfly
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand All @@ -62,7 +62,7 @@ jobs:
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 11
distribution: temurin
cache: maven
- name: Login to Quay.io
Expand All @@ -74,7 +74,7 @@ jobs:
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Standalone Tag
id: standalone-tag
run: $MVN -DskipTests package --projects standalone --also-make -P native,prod,theme-hal -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.image=quay.io/halconsole/hal:${{ steps.get-version.outputs.version-without-v }}.Final '-Dquarkus.container-image.labels."org.opencontainers.image.revision"='$GITHUB_SHA -Dquarkus.native.remote-container-build=true
run: $MVN package --projects standalone --also-make -P native,prod,theme-hal -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.image=quay.io/halconsole/hal:${{ steps.get-version.outputs.version-without-v }}.Final '-Dquarkus.container-image.labels."org.opencontainers.image.revision"='$GITHUB_SHA -Dquarkus.native.remote-container-build=true
- name: Check Latest
id: check-latest
run: |
Expand Down Expand Up @@ -103,12 +103,12 @@ jobs:
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 11
distribution: temurin
cache: maven
- name: Package
id: package
run: $MVN -DskipTests package -P prod,theme-hal
run: $MVN package -P prod,theme-hal
- name: Publish
id: publish
uses: JamesIves/[email protected]
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ jobs:
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 11
distribution: temurin
cache: maven
- name: Package
id: package
run: $MVN package -DskipTests -P prod
run: $MVN package -P prod
- name: Set up Maven Settings
id: setup-maven-settings
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: 17
java-version: 11
distribution: temurin
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Deploy
id: deploy
run: $MVN deploy -DskipTests -P prod
run: $MVN deploy -P prod
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand All @@ -48,4 +48,4 @@ jobs:
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Standalone Latest
id: standalone-latest
run: $MVN package -DskipTests --projects standalone --also-make -P native,prod,theme-hal -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.image=quay.io/halconsole/hal-development:latest '-Dquarkus.container-image.labels."org.opencontainers.image.revision"='$GITHUB_SHA -Dquarkus.native.remote-container-build=true
run: $MVN package --projects standalone --also-make -P native,prod,theme-hal -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.image=quay.io/halconsole/hal-development:latest '-Dquarkus.container-image.labels."org.opencontainers.image.revision"='$GITHUB_SHA -Dquarkus.native.remote-container-build=true

0 comments on commit 639834a

Please sign in to comment.