mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-09 04:35:36 +00:00
update workflow
This commit is contained in:
parent
12f5f1ae83
commit
6bcf596f63
55
.github/workflows/release.yml
vendored
55
.github/workflows/release.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone client
|
- name: Clone client
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Setup Node 16
|
- name: Setup Node 16
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -99,7 +99,7 @@ jobs:
|
|||||||
permissions: write-all
|
permissions: write-all
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout into repo
|
- name: Checkout into repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Download all binaries
|
- name: Download all binaries
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
- name: Upload binaries to GitHub Release
|
- name: Upload binaries to GitHub Release
|
||||||
@ -113,3 +113,54 @@ jobs:
|
|||||||
artifactErrorsFailBuild: true
|
artifactErrorsFailBuild: true
|
||||||
name: ${{ inputs.tag }}
|
name: ${{ inputs.tag }}
|
||||||
bodyFile: .github/changelog.md
|
bodyFile: .github/changelog.md
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
permissions: write-all
|
||||||
|
steps:
|
||||||
|
- name: Checkout into repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Download linux binary
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux
|
||||||
|
path: dist/swingmusic
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Login to GHCR
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# - name: Docker meta
|
||||||
|
# id: meta # you'll use this in the next step
|
||||||
|
# uses: docker/metadata-action@v3
|
||||||
|
# with:
|
||||||
|
# # list of Docker images to use as base name for tags
|
||||||
|
# images: |
|
||||||
|
# ghcr.io/${{ github.repository }}
|
||||||
|
# # Docker tags based on the following events/attributes
|
||||||
|
# tags: |
|
||||||
|
# type=schedule
|
||||||
|
# type=ref,event=branch
|
||||||
|
# type=ref,event=pr
|
||||||
|
# type=semver,pattern={{version}}
|
||||||
|
# type=semver,pattern={{major}}.{{minor}}
|
||||||
|
# type=semver,pattern={{major}}
|
||||||
|
# type=sha
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm
|
||||||
|
push: true
|
||||||
|
tags: swingmusic:${{ inputs.tag }}
|
||||||
|
# labels: ${{ steps.meta.outputs.labels }}w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user