Updated the release.yml workflow
This commit is contained in:
parent
fbe397bd90
commit
56ec5c5aa9
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -16,6 +16,14 @@ jobs:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@master
|
||||
with:
|
||||
platforms: all
|
||||
|
||||
- name: Set up Docker Build
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
@ -42,4 +50,19 @@ jobs:
|
||||
prerelease: false
|
||||
title: Release ${{ steps.get_version.outputs.version }}
|
||||
files: |
|
||||
./target/${{ steps.get_artifact_id.outputs.name }}-${{ steps.get_version.outputs.version }}.jar
|
||||
./target/${{ steps.get_artifact_id.outputs.name }}-${{ steps.get_version.outputs.version }}.jar
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: |
|
||||
germannewsmaker/mcdash:latest
|
||||
germannewsmaker/mcdash:${{ steps.get_version.outputs.version }}
|
Reference in New Issue
Block a user