Skip to content

Commit

Permalink
The "create release" action now automatically uploads the newest rele…
Browse files Browse the repository at this point in the history
…ase to the docker hub
  • Loading branch information
gnmyt committed Aug 10, 2022
1 parent b546f03 commit d6c89c6
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand All @@ -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 }}

0 comments on commit d6c89c6

Please sign in to comment.