From d6c89c603fd9037cd0f875502863c66e1c32e2f9 Mon Sep 17 00:00:00 2001 From: Mathias Date: Wed, 10 Aug 2022 22:36:01 +0200 Subject: [PATCH] The "create release" action now automatically uploads the newest release to the docker hub --- .github/workflows/create_release.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 858dab4b..ef519861 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -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 \ No newline at end of file + ./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 }} \ No newline at end of file