Skip to content

Commit d6c89c6

Browse files
committed
The "create release" action now automatically uploads the newest release to the docker hub
1 parent b546f03 commit d6c89c6

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/create_release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
with:
1919
node-version: '16'
2020

21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@master
23+
with:
24+
platforms: all
25+
26+
- name: Set up Docker Build
27+
uses: docker/setup-buildx-action@v2
28+
29+
- name: Login to DockerHub
30+
uses: docker/login-action@v2
31+
with:
32+
username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
password: ${{ secrets.DOCKERHUB_TOKEN }}
34+
2135
- run: cd client && npm install --force
2236
- run: npm run build && mv client/build .
2337

@@ -37,4 +51,13 @@ jobs:
3751
prerelease: false
3852
title: Release ${{ steps.get_version.outputs.version }}
3953
files: |
40-
./MySpeed-*.zip
54+
./MySpeed-*.zip
55+
56+
- name: Build and push
57+
uses: docker/build-push-action@v3
58+
with:
59+
push: true
60+
platforms: linux/amd64,linux/arm64,linux/arm/v7
61+
tags: |
62+
germannewsmaker/myspeed:latest
63+
germannewsmaker/myspeed:${{ steps.get_version.outputs.version }}

0 commit comments

Comments
 (0)