14 Commits

Author SHA1 Message Date
30f9abbd0d fix: v0.1.2
All checks were successful
/ build ushare (push) Successful in 47s
/ clean (push) Successful in 1s
2025-05-11 10:42:44 +08:00
b2e3649a10 fix: v0.1.2
All checks were successful
/ build ushare (push) Successful in 10s
/ clean (push) Successful in 0s
2025-05-11 10:38:10 +08:00
205e436712 fix: v0.1.2
Some checks failed
/ build ushare (push) Failing after 6s
/ clean (push) Successful in 0s
2025-05-11 10:35:09 +08:00
467cc95bc7 fix: v0.1.2
Some checks failed
/ build ushare (push) Failing after 5s
/ clean (push) Successful in 0s
2025-05-11 10:25:26 +08:00
baa3098253 fix: v0.1.2
All checks were successful
/ build ushare (push) Successful in 3s
/ clean (push) Successful in 1s
2025-05-11 10:15:31 +08:00
9eed7ecaca fix: v0.1.2
All checks were successful
/ build ushare (push) Successful in 1m13s
/ clean (push) Successful in 0s
2025-05-11 10:10:57 +08:00
6a99e9ba6c fix: v0.1.2
All checks were successful
/ build ushare (push) Successful in 3s
/ clean (push) Successful in 0s
2025-05-10 11:54:08 +08:00
9d96ea1f70 fix: v0.1.2
Some checks failed
/ build ushare (push) Failing after 14s
/ clean (push) Successful in 0s
2025-05-10 11:51:28 +08:00
0dd72d0f53 fix: v0.1.2
All checks were successful
/ build and run u-api (push) Successful in 8s
/ clean (push) Successful in 0s
2025-05-10 11:35:29 +08:00
58564f9d5e fix: v0.1.2
Some checks failed
/ build and run u-api (push) Failing after 2s
/ clean (push) Successful in 0s
2025-05-10 11:13:24 +08:00
5c06d03f04 fix: v0.1.2
Some checks failed
/ build and run u-api (push) Failing after 2s
/ clean (push) Successful in 0s
2025-05-10 11:07:46 +08:00
b207b64466 fix: v0.1.2
Some checks failed
/ build and run u-api (push) Failing after 3s
/ clean (push) Successful in 0s
2025-05-10 11:06:22 +08:00
139401768f fix: v0.1.2
Some checks failed
/ build and run u-api (push) Failing after 3s
/ clean (push) Successful in 0s
2025-05-10 11:04:45 +08:00
6da6688677 fix: v0.1.2
All checks were successful
/ build and run u-api (push) Successful in 2s
/ clean (push) Successful in 1s
2025-05-10 10:51:13 +08:00
2 changed files with 25 additions and 13 deletions

View File

@ -5,7 +5,7 @@ on:
- 'v*'
jobs:
build and run u-api:
build ushare:
runs-on: tencent-sg
steps:
- name: prepare enviroment
@ -17,9 +17,6 @@ jobs:
- name: print operator
run: whoami
- name: print work dir and files
run: pwd & ls -alsh .
- name: print tag name
run: echo "Tag name = ${{ gitea.ref_name }}"
@ -29,14 +26,29 @@ jobs:
${{ secrets.DOCKER_CONFIG }}
EOF
- name: build by kaniko in docker
run: |
docker run --rm -v $(pwd):/workspace \
-v $(pwd)/.docker.config.json:/kaniko/.docker/config.json:ro \
gcr.io/kaniko-project/executor:latest \
'-f /workspace/Dockerfile' \
'-d "gitea.loveuer.com/loveuer/build/ushare:${{ gitea.ref_name }}"' \
'--single-snapshot'
- name: print work dir and files
run: pwd & ls -alsh .
- name: build image by docker build
run: docker build -t gitea.loveuer.com/loveuer/build/ushare:${{ gitea.ref_name }} .
- name: login repository
run: echo ${{ secrets.DOCKER_REPOSITORY_PASSWORD }} | docker login --username loveuer --password-stdin gitea.loveuer.com/loveuer
- name: push image to repository
run: docker push gitea.loveuer.com/loveuer/build/ushare:${{ gitea.ref_name }}
# - name: build by kaniko in docker
# run: |
# docker run --rm -v $(pwd):/workspace \
# -v $(pwd)/.docker.config.json:/kaniko/.docker/config.json:ro \
# alpine:latest \
# ls -alsh /workspace
# gcr.io/kaniko-project/executor:latest \
# --dockerfile=/workspace/Dockerfile \
# --context=/workspace \
# --destination=gitea.loveuer.com/loveuer/build/u-api:${{ gitea.ref_name }} \
# --single-snapshot
clean:
if: always()

View File

@ -32,4 +32,4 @@ COPY deployment/nginx.conf /etc/nginx/conf.d
EXPOSE 80
# 启动服务
CMD sh -c "ushare & nginx -g 'daemon off;'"
CMD ["sh", "-c", "ushare & nginx -g 'daemon off;'"]