From 35dec0fe08da90a97d7309a25070e75322b733d8 Mon Sep 17 00:00:00 2001 From: Sascha Eisenmann Date: Tue, 4 Jul 2023 07:32:16 +0200 Subject: [PATCH] Removed Sonatype and GPG frombuild --- .github/workflows/manual_testing.yml | 2 +- .github/workflows/publish-release.yml | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/manual_testing.yml b/.github/workflows/manual_testing.yml index 12f595f74..d0d329c6a 100644 --- a/.github/workflows/manual_testing.yml +++ b/.github/workflows/manual_testing.yml @@ -32,4 +32,4 @@ jobs: NEW_VERSION=1h IMAGE=${IMAGE_NAME}:${NEW_VERSION} echo "Building new version ${NEW_VERSION} of $IMAGE" - ./gradlew jib --image="${IMAGE}" + ./gradlew jib --image="${IMAGE}" --warning-mode all diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 59f408012..20355b854 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -32,19 +32,12 @@ jobs: - name: Publish artifact env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GPG_KEYS: ${{ secrets.GPG_KEYS }} - GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} # The GITHUB_REF tag comes in the format 'refs/tags/xxx'. # So if we split on '/' and take the 3rd value, we can get the release name. run: | - export GPG_TTY=$(tty) && echo "$GPG_KEYS" | gpg --fast-import --batch NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3) IMAGE=${IMAGE_NAME}:${NEW_VERSION} echo "Releasing new version ${NEW_VERSION} of $IMAGE" - ./gradlew -Pversion=${NEW_VERSION} publish publishToSonatype closeAndReleaseStagingRepository -Dorg.gradle.internal.publish.checksums.insecure=true --info ./gradlew jib --image="${IMAGE}"