Compare commits
16 Commits
cfddd28be4
...
v0.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
919886cb55 | ||
|
|
9dfb8f1ecb | ||
|
|
446392f75e | ||
|
|
5c8d62ca6d | ||
|
|
52627c620d | ||
|
|
1e76690fa6 | ||
|
|
d61d76244d | ||
|
|
2c17bc5720 | ||
|
|
dfb9608d3d | ||
|
|
b6dabdbbf8 | ||
|
|
ed3de05b12 | ||
|
|
66b143f3f7 | ||
|
|
d3abfab99a | ||
|
|
98cee8fc65 | ||
|
|
0259dbe114 | ||
|
|
eb67824f3e |
@@ -9,17 +9,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
steps:
|
steps:
|
||||||
- name: 計算版本號
|
|
||||||
id: version
|
|
||||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
|
|
||||||
with:
|
|
||||||
gitea-server: ${{ gitea.server_url }}
|
|
||||||
repository: ${{ gitea.repository }}
|
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
- name: 發布專案
|
- name: 發布專案
|
||||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
||||||
with:
|
with:
|
||||||
tag_name: "v${{ steps.version.outputs.VERSION }}"
|
tag_name: "v0.0.6"
|
||||||
|
- name: 計算版本號
|
||||||
|
id: version
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.5
|
||||||
- name: 清理舊版本 (保留最新2個)
|
- name: 清理舊版本 (保留最新2個)
|
||||||
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
|
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
# 更新並安裝必要的工具後清理暫存檔案以減小映像檔大小
|
# 更新並安裝必要的工具
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk add --no-cache curl jq
|
&& apk add --no-cache bash curl jq
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
name: 'CALCULATE VERSION'
|
name: 'CALCULATE VERSION'
|
||||||
description: '計算版本號'
|
description: '計算版本號'
|
||||||
author: 'Jeffery'
|
author: 'Jeffery'
|
||||||
|
inputs:
|
||||||
|
RUNNER_TOKEN:
|
||||||
|
description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}'
|
||||||
outputs:
|
outputs:
|
||||||
VERSION:
|
VERSION:
|
||||||
description: '計算出的新版本號'
|
description: '計算出的新版本號'
|
||||||
@@ -11,4 +14,4 @@ runs:
|
|||||||
env:
|
env:
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }}
|
||||||
Reference in New Issue
Block a user