SoulFire 1.12.1 (Small improvements) #23
Workflow file for this run
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: Docker Deploy | |
on: [ release ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Validate Gradle wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Set version | |
id: set-version | |
run: | | |
projectVersion=$(grep '^maven_version=' gradle.properties | cut -d'=' -f2) | |
echo "::set-output name=version::$projectVersion" | |
- name: "Login to Docker Container Registry" | |
uses: docker/login-action@v3 | |
with: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver: docker-container | |
driver-opts: | | |
image=moby/buildkit:v0.11.6 | |
platforms: linux/amd64,linux/arm64 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
alexprogrammerde/soulfire:latest | |
alexprogrammerde/soulfire:${{ steps.set-version.outputs.version }} | |
- name: Push README.md to Dockerhub | |
uses: christian-korneck/update-container-description-action@v1 | |
env: | |
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }} | |
with: | |
destination_container_repo: alexprogrammerde/soulfire | |
provider: dockerhub | |
short_description: 'Advanced Minecraft Server-Stresser Tool. Launch bot attacks on your servers to measure performance.' | |
readme_file: 'README.md' |