Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
521e6c3d59
54
.gitea/workflows/CI.yaml
Normal file
54
.gitea/workflows/CI.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
name: CI
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Docker-Build:
|
||||||
|
runs-on: joylink-local233
|
||||||
|
steps:
|
||||||
|
- name: 检出代码
|
||||||
|
uses: https://gitea.joylink.club/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: 设置go环境
|
||||||
|
uses: https://gitea.joylink.club/actions/local-setup-go@v0.1.1
|
||||||
|
with:
|
||||||
|
go-version: '1.22.1'
|
||||||
|
- name: 构建go build
|
||||||
|
run: |
|
||||||
|
go env -w GO111MODULE=on
|
||||||
|
go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
|
go build -o rts-sim-testing-service
|
||||||
|
- name: 设置 Docker Buildx
|
||||||
|
uses: https://gitea.joylink.club/actions/local-setup-buildx-action@v0.1.1
|
||||||
|
with:
|
||||||
|
version: 'v0.13.1'
|
||||||
|
- name: docker登录gitea.joylink.club
|
||||||
|
uses: https://gitea.joylink.club/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.joylink.club
|
||||||
|
username: shengxuqiang
|
||||||
|
password: ${{ secrets.SHENGXUQIANG_PASSWORD }}
|
||||||
|
- name: Docker Build and push
|
||||||
|
uses: https://gitea.joylink.club/docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile_Gitea
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
gitea.joylink.club/joylink/rts-sim-testing-service:0.1.1
|
||||||
|
gitea.joylink.club/joylink/rts-sim-testing-service:latest
|
||||||
|
# - name: SSH Connect and Publish
|
||||||
|
# uses: http://120.46.212.6:3000/appleboy/ssh-action@v1.0.3
|
||||||
|
# with:
|
||||||
|
# host: ${{ secrets.LOCAL_SSH_HOST }}
|
||||||
|
# port: ${{ secrets.LOCAL_SSH_PORT }}
|
||||||
|
# username: ${{ secrets.LOCAL_SSH_USER }}
|
||||||
|
# password: ${{ secrets.LOCAL_SSH_PASSWORD }}
|
||||||
|
# script: |
|
||||||
|
# whoami
|
||||||
|
# sudo docker images
|
||||||
|
- run: echo "This job's status is ${{ job.status }}."
|
5
Dockerfile_Gitea
Normal file
5
Dockerfile_Gitea
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM alpine
|
||||||
|
COPY ./rts-sim-testing-service /usr/local/bin/rts-sim-testing-service
|
||||||
|
WORKDIR /bj-rtsts
|
||||||
|
COPY ./config/*.yml ./
|
||||||
|
CMD [ "rts-sim-testing-service" ]
|
Loading…
Reference in New Issue
Block a user