mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 19:25:34 +00:00
handle latest tag in docker release
This commit is contained in:
parent
8069eb5496
commit
5dc28fbae6
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
description: "Tag"
|
description: "Tag"
|
||||||
required: true
|
required: true
|
||||||
default: "v1.x.x"
|
default: "v1.x.x"
|
||||||
latest:
|
is_latest:
|
||||||
description: "Set as latest"
|
description: "Set as latest"
|
||||||
required: true
|
required: true
|
||||||
default: "true"
|
default: "true"
|
||||||
@ -113,6 +113,7 @@ jobs:
|
|||||||
artifactErrorsFailBuild: true
|
artifactErrorsFailBuild: true
|
||||||
name: ${{ inputs.tag }}
|
name: ${{ inputs.tag }}
|
||||||
bodyFile: .github/changelog.md
|
bodyFile: .github/changelog.md
|
||||||
|
makeLatest: ${{ inputs.is_latest }}
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
@ -164,5 +165,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm
|
platforms: linux/amd64,linux/arm
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{github.repository}}:${{inputs.tag}}
|
tags: ghcr.io/${{github.repository}}:${{inputs.tag}}, ${{env.LATEST_TAG}}
|
||||||
labels: ${{ steps.meta.outputs.labels }}w
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
env:
|
||||||
|
LATEST_TAG: ${{ inputs.is_latest == 'true' && join('ghcr.io/', join(github.repository, ':latest')) || '' }}
|
||||||
|
@ -52,7 +52,11 @@ The link to access the app will be printed on your terminal. Copy it and open it
|
|||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
You can run Swing Music in a Docker container. To do so, clone the repository and build the image:
|
Pull the latest Docker image and run it:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker pull ghcr.io/swing-opensource/swingmusic:v1.3.0
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/swing-opensource/swingmusic.git --depth 1
|
git clone https://github.com/swing-opensource/swingmusic.git --depth 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user