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