Skip to content

Commit

Permalink
Put QEMU back
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperschwartz committed Sep 23, 2022
1 parent d6a167b commit 1d3a0a3
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ jobs:
- name: Build with Gradle
run: ./gradlew clean build --refresh-dependencies -Pversion=$VERSION

# - name: Install gpg secret key
# run: |
# export GPG_TTY=$(tty)
# echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import
# gpg --list-secret-keys --keyid-format LONG
# echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > $GITHUB_WORKSPACE/release.gpg
# if: github.event_name == 'release'
#
# - name: Publish to Maven Central
# run: |
# ./gradlew publishToSonatype $(if [ "${{github.event.release.prerelease}}" = "true" ]; then echo 'closeSonatypeStagingRepository'; else echo 'closeAndReleaseSonatypeStagingRepository'; fi) \
# -Pversion=$VERSION \
# -Psigning.keyId=69C08EA0 -Psigning.password="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg \
# --info
# env:
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# if: github.event_name == 'release'
#
# - name: Upload server Artifact
# uses: actions/upload-artifact@v2
# with:
# name: server
# path: server/build/libs/*.jar
- name: Install gpg secret key
run: |
export GPG_TTY=$(tty)
echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > $GITHUB_WORKSPACE/release.gpg
if: github.event_name == 'release'

- name: Publish to Maven Central
run: |
./gradlew publishToSonatype $(if [ "${{github.event.release.prerelease}}" = "true" ]; then echo 'closeSonatypeStagingRepository'; else echo 'closeAndReleaseSonatypeStagingRepository'; fi) \
-Pversion=$VERSION \
-Psigning.keyId=69C08EA0 -Psigning.password="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg \
--info
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
if: github.event_name == 'release'

- name: Upload server Artifact
uses: actions/upload-artifact@v2
with:
name: server
path: server/build/libs/*.jar

docker_build:
name: Build and Publish Docker Image
Expand Down Expand Up @@ -98,12 +98,12 @@ jobs:
echo "DOCKER_TAGS=$DOCKER_TAGS" >> $GITHUB_ENV
# - name: Setup QEMU
# id: qemu
# uses: docker/setup-qemu-action@v1
# with:
# image: tonistiigi/binfmt:latest
# platforms: all
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all

- name: Set up Docker Buildx
id: buildx
Expand Down

0 comments on commit 1d3a0a3

Please sign in to comment.