mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-01-06 04:59:41 -06:00
The "create release" action now automatically uploads the newest release to the docker hub
This commit is contained in:
25
.github/workflows/create_release.yml
vendored
25
.github/workflows/create_release.yml
vendored
@@ -18,6 +18,20 @@ jobs:
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
- 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: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- run: cd client && npm install --force
|
||||
- run: npm run build && mv client/build .
|
||||
|
||||
@@ -37,4 +51,13 @@ jobs:
|
||||
prerelease: false
|
||||
title: Release ${{ steps.get_version.outputs.version }}
|
||||
files: |
|
||||
./MySpeed-*.zip
|
||||
./MySpeed-*.zip
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: |
|
||||
germannewsmaker/myspeed:latest
|
||||
germannewsmaker/myspeed:${{ steps.get_version.outputs.version }}
|
||||
Reference in New Issue
Block a user