Skip to content

Commit

Permalink
Removed Sonatype and GPG frombuild
Browse files Browse the repository at this point in the history
  • Loading branch information
sascha-eisenmann committed Jul 4, 2023
1 parent 04c6533 commit 35dec0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 35dec0f

Please sign in to comment.