mirror of https://github.com/msgbyte/tailchat
parent
ad6435b5d6
commit
f805261726
@ -0,0 +1,30 @@
|
|||||||
|
name: "Docker Publish"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dockerize:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: Get version
|
||||||
|
id: get_version
|
||||||
|
# run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
|
run: echo ::set-output name=VERSION::${github.ref} # 支持手动触发
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: moonrailgun/tailchat:${{ steps.get_version.outputs.VERSION }}
|
Loading…
Reference in New Issue