Quarkus Platform Deploy Snapshots #439
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quarkus Platform Deploy Snapshots | |
on: | |
schedule: | |
- cron: '0 2 * * *' | |
workflow_dispatch: | |
env: | |
LANG: en_US.UTF-8 | |
jobs: | |
build-and-deploy: | |
permissions: | |
issues: write | |
name: "Build and deploy" | |
runs-on: ubuntu-latest | |
if: github.repository == 'quarkusio/quarkus-platform' | |
env: | |
MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Reclaim Disk Space | |
run: .github/ci-prerequisites.sh | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Get Date | |
id: get-date | |
run: | | |
echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache Maven Repository | |
id: cache-maven | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
# refresh cache every month to avoid unlimited growth | |
key: deploy-snapshots-${{ steps.get-date.outputs.date }} | |
- name: Build and Deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }} | |
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }} | |
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }} | |
run: | | |
./mvnw -B -N versions:set-property -Dproperty=quarkus.version -DnewVersion=999-SNAPSHOT -DenableSnapshotsRepository | |
./mvnw -B -Dsync -DenableSnapshotsRepository | |
./mvnw -e -B --settings .github/mvn-settings.xml \ | |
-DskipTests -DskipITs \ | |
-DretryFailedDeploymentCount=10 \ | |
-DenableSnapshotsRepository \ | |
clean deploy | |
- name: Delete Local Artifacts From Cache | |
shell: bash | |
run: rm -r ~/.m2/repository/io/quarkus/platform ~/.m2/repository/io/quarkus/quarkus-universe-bom | |
- name: Report | |
if: always() | |
shell: bash | |
run: | | |
curl -Ls https://sh.jbang.dev | bash -s - app setup | |
~/.jbang/bin/jbang .github/NativeBuildReport.java \ | |
issueNumber=35716 \ | |
runId=${{ github.run_id }} \ | |
status=${{ job.status }} \ | |
token=${{ secrets.ECOSYSTEM_CI_TOKEN }} \ | |
issueRepo=quarkusio/quarkus \ | |
thisRepo=${{ github.repository }} |