Skip to content

Commit 1e25c15

Browse files
authored
Remove known issue section in Gitea Actions Doc (#27930)
The bug has been fixed for several months in the `docker/build-push-action` The fix commit is [d8823bfaed](docker/build-push-action@d8823bf) as the Gitea Actions Doc mentioned too.
1 parent 7a2ff6c commit 1e25c15

File tree

2 files changed

+0
-62
lines changed

2 files changed

+0
-62
lines changed

docs/content/usage/actions/comparison.en-us.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -130,34 +130,3 @@ More details about the `[actions].DEFAULT_ACTIONS_URL` configuration can be foun
130130

131131
Context availability is not checked, so you can use the env context on more places.
132132
See [Context availability](https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability).
133-
134-
## Known issues
135-
136-
### `docker/build-push-action@v4`
137-
138-
See [act_runner#119](https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294).
139-
140-
`ACTIONS_RUNTIME_TOKEN` is a random string in Gitea Actions, not a JWT.
141-
But the `docker/build-push-action@v4` tries to parse the token as JWT and doesn't handle the error, so the job fails.
142-
143-
There are two workarounds:
144-
145-
Set the `ACTIONS_RUNTIME_TOKEN` to empty manually, like:
146-
147-
``` yml
148-
- name: Build and push
149-
uses: docker/build-push-action@v4
150-
env:
151-
ACTIONS_RUNTIME_TOKEN: ''
152-
with:
153-
...
154-
```
155-
156-
The bug has been fixed in a newer [commit](https://gitea.com/docker/build-push-action/commit/d8823bfaed2a82c6f5d4799a2f8e86173c461aba?style=split&whitespace=show-all#diff-1af9a5bdf96ddff3a2f3427ed520b7005e9564ad), but it has not been released. So you could use the latest version by specifying the branch name, like:
157-
158-
``` yml
159-
- name: Build and push
160-
uses: docker/build-push-action@master
161-
with:
162-
...
163-
```

docs/content/usage/actions/comparison.zh-cn.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -132,34 +132,3 @@ Gitea Actions目前不支持此功能。
132132

133133
不检查上下文可用性,因此您可以在更多地方使用env上下文。
134134
请参阅[上下文可用性](https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability)
135-
136-
## 已知问题
137-
138-
### `docker/build-push-action@v4`
139-
140-
请参阅[act_runner#119](https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294)
141-
142-
`ACTIONS_RUNTIME_TOKEN`在Gitea Actions中是一个随机字符串,而不是JWT。
143-
但是`DOCKER/BUILD-PUSH-ACTION@V4尝试将令牌解析为JWT,并且不处理错误,因此Job失败。
144-
145-
有两种解决方法:
146-
147-
手动将`ACTIONS_RUNTIME_TOKEN`设置为空字符串,例如:
148-
149-
``` yml
150-
- name: Build and push
151-
uses: docker/build-push-action@v4
152-
env:
153-
ACTIONS_RUNTIME_TOKEN: ''
154-
with:
155-
...
156-
```
157-
158-
该问题已在较新的[提交](https://gitea.com/docker/build-push-action/commit/d8823bfaed2a82c6f5d4799a2f8e86173c461aba?style=split&whitespace=show-all#diff-1af9a5bdf96ddff3a2f3427ed520b7005e9564ad)中修复,但尚未发布。因此,您可以通过指定分支名称来使用最新版本,例如:
159-
160-
``` yml
161-
- name: Build and push
162-
uses: docker/build-push-action@master
163-
with:
164-
...
165-
```

0 commit comments

Comments
 (0)