mirror of
https://github.com/3cky/mbusd
synced 2025-10-12 23:14:13 +08:00
Update Docker publish workflow
This commit is contained in:
parent
91f8e35eae
commit
ac927aa19a
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
|
@ -1,11 +1,12 @@
|
||||||
name: docker publish
|
name: docker publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
tags: [ 'v[0-9].[0-9]+.[0-9]+' ]
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: [ 'build' ]
|
workflows: [ 'build' ]
|
||||||
types: [ completed ]
|
types: [ completed ]
|
||||||
branches: [ 'master' ]
|
branches: [ 'master' ]
|
||||||
tags: [ 'v*' ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
|
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
@ -42,7 +43,6 @@ jobs:
|
||||||
images: ${{ env.IMAGE_NAME }}
|
images: ${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
type=sha
|
||||||
|
|
|
@ -150,7 +150,7 @@ docker run -d --privileged \
|
||||||
-p 502:502 \
|
-p 502:502 \
|
||||||
-v /dev:/dev \
|
-v /dev:/dev \
|
||||||
-v /path/to/mbusd.conf:/etc/mbusd.conf \
|
-v /path/to/mbusd.conf:/etc/mbusd.conf \
|
||||||
3cky/mbusd
|
3cky/mbusd:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
where `/path/to/mbusd.conf` is the path to **mbusd** config file in the local filesystem.
|
where `/path/to/mbusd.conf` is the path to **mbusd** config file in the local filesystem.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user