ci(docker): 更新Docker工作流以包含构建步骤
添加checkout步骤并使用环境变量进行认证 包含构建Linux可执行文件的步骤
This commit is contained in:
parent
e78b93d6fb
commit
0992c2ad7b
@ -25,10 +25,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
# 使用gitea-tool-cache需要指定具体的版本号1
|
||||
# 使用gitea-tool-cache需要指定具体的版本号
|
||||
go: ["1.24.3"]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://${{ env.GIT_USERNAME }}:${{ env.GIT_PASSWORD }}@${{ vars.DOMAIN_OF_GITEA}}/actions/checkout@main
|
||||
|
||||
# 将.env环境变量配置文件拷贝致gitea runner容器
|
||||
- name: copy env file to runner container
|
||||
@ -71,6 +73,7 @@ jobs:
|
||||
run: |
|
||||
source ${{ gitea.workspace }}/deploy/.env
|
||||
go mod tidy
|
||||
make build-linux
|
||||
make docker
|
||||
make publish-docker
|
||||
make docker-run
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user