From bd0d9dbed6dfef3ea21871520f495847fcc26ddd Mon Sep 17 00:00:00 2001 From: Chuckame Date: Fri, 6 Nov 2020 12:44:22 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 487b73d..008ebe1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: - 'v*.*.*' jobs: - upload: + release: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -26,7 +26,7 @@ jobs: run: ./gradlew bootDistZip - name: Create Release id: create_release - uses: actions/create-release@v1.1.4 + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -36,7 +36,7 @@ jobs: prerelease: false - name: Upload Release Asset id: upload-release-asset - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -45,25 +45,18 @@ jobs: asset_name: marlin-console-configurator.zip asset_content_type: application/zip - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 + - name: Push to DockerHub + uses: docker/build-push-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - name: Build and push - uses: docker/build-push-action@v2 + repository: chuckame/marlin-console-configurator + tag_with_ref: true + - name: Push to GitHub Packages + uses: docker/build-push-action@v1 with: - context: . - file: ./Dockerfile - platforms: linux/amd64 - push: true - tags: | - chuckame/marlin-console-configurator:latest - chuckame/marlin-console-configurator:${{ steps.get_version.outputs.VERSION }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.pkg.github.com + repository: chuckame/marlin-console-configurator/marlin-console-configurator + tag_with_ref: true