Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame authored Nov 6, 2020
1 parent df07d20 commit bd0d9db
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'v*.*.*'

jobs:
upload:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit bd0d9db

Please sign in to comment.