Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
feat: 增加github action 自动发布脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Dec 5, 2023
1 parent 7873f84 commit 4d502cf
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 自动构建发布

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: 代码拉取
uses: actions/checkout@v2

- name: 初始化环境
run: |
chmod +x ./.devcontainer/scripts/init.sh
./.devcontainer/scripts/init.sh

- name: Release
run: |
chmod +x ./release.sh
./release.sh

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: 登录到docker
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}


0 comments on commit 4d502cf

Please sign in to comment.