Skip to content

Commit

Permalink
Merge pull request #135 from es-ude/fix_release_workflow
Browse files Browse the repository at this point in the history
fix(workflow): fix package release jobs
  • Loading branch information
DavidFederl authored Dec 19, 2024
2 parents c943f07 + dbe2b6a commit 314b05d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 223 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
issues: write
pull-requests: write
outputs:
release_tag: ${{ steps.release.outputs.tag }}
release_tag: ${{ steps.release.outputs.VERSION }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -54,12 +54,10 @@ jobs:
- name: Verify the integrity and registry signatures for dependencies
run: npm audit signatures
- name: Create Release
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
- name: Get Release Version
id: release
uses: GuillaumeFalourd/get-release-or-tag@v2
publish_package:
name: Publish runtime as Maven Package
runs-on: ubuntu-latest
Expand All @@ -73,8 +71,8 @@ jobs:
uses: actions/checkout@v4
- name: Push Package
env:
ACTOR: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ needs.release.outputs.release_tag }}
run: |
./gradlew -Pversion=$TAG :runtime:publish
Expand Down
6 changes: 6 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"label": "Monitor Java executable."
}
}
],
[
"@semantic-release/exec",
{
"publishCmd": "echo \"VERSION=${nextRelease.version}\"" >> "$GITHUB_OUTPUT"
}
]
]
}
7 changes: 5 additions & 2 deletions monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM openjdk:17-alpine
LABEL authors=IES-UDE
LABEL description="Monitor for the elastic-AI ecosystem"
LABEL homepage="https://www.uni-due.de/es/en/en_elastic_ai.php"

RUN addgroup monitor && \
adduser --disabled-password --ingroup monitor monitor
Expand All @@ -8,6 +11,6 @@ COPY build/libs/monitor.jar monitor.jar

USER monitor

EXPOSE 80
EXPOSE 80/tcp

CMD["java", "-jar", "monitor.jar"]
CMD ["java", "-jar", "monitor.jar"]
Loading

0 comments on commit 314b05d

Please sign in to comment.