Updated the release.yml workflow
This commit is contained in:
parent
fbe397bd90
commit
56ec5c5aa9
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -16,6 +16,14 @@ jobs:
|
|||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'adopt'
|
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
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -43,3 +51,18 @@ jobs:
|
|||||||
title: Release ${{ steps.get_version.outputs.version }}
|
title: Release ${{ steps.get_version.outputs.version }}
|
||||||
files: |
|
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