Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

リリース時 ghcr.io へのイメージプッシュに失敗する #701

Closed
2 tasks done
m1sk9 opened this issue Feb 3, 2023 · 3 comments · Fixed by #710
Closed
2 tasks done

リリース時 ghcr.io へのイメージプッシュに失敗する #701

m1sk9 opened this issue Feb 3, 2023 · 3 comments · Fixed by #710
Labels
C-bug Category: bug C-GitHub Actions Category: GitHub Actions P-high Priority: High

Comments

@m1sk9
Copy link
Contributor

m1sk9 commented Feb 3, 2023

バグレポートの提出を行う前に

  • すでに同じバグを報告するIssueが存在しないか確認しましたか?
  • セキュリティーに関する不具合ではありませんか? セキュリティーに関する不具合はIssueで報告せず適切な方法で報告してください

バグの詳細

リリースプルリクエスト ( #634 など) をマージすると実行されるリリースCIではビルドした Docker Image を ghcr.io にプッシュする工程があるが、エラーが発生し正常にリリースできないため、リポジトリのタグの Latest とイメージの Latest が一致しない という状況が発生している

https://github.com/approvers/OreOreBot2/actions/runs/3974652560/jobs/6814039402#step:4:3616

#26 exporting to image
#26 pushing layers 0.2s done
#26 ERROR: failed to push approvers/oreorebot2:latest: server message: insufficient_scope: authorization failed
------
 > exporting to image:
------
ERROR: failed to solve: failed to push approvers/oreorebot2:latest: server message: insufficient_scope: authorization failed
Error: buildx failed with: ERROR: failed to solve: failed to push approvers/oreorebot2:latest: server message: insufficient_scope: authorization failed

再現方法

  1. リリースプルリクエストをマージする

期待する動作

正常にイメージがプッシュされる

はらちょのバージョン

少なくとも `v1.30.0` から発生している

追加情報

イメージプッシュに失敗したらタグをプッシュしない二重の対策をかますべきかもしれない

@m1sk9 m1sk9 added C-bug Category: bug C-GitHub Actions Category: GitHub Actions P-high Priority: High labels Feb 3, 2023
@m1sk9
Copy link
Contributor Author

m1sk9 commented Feb 5, 2023

docker/build-push-action の issue に関係しそうなのが報告されていたので共有

docker/build-push-action#160

@m1sk9
Copy link
Contributor Author

m1sk9 commented Feb 6, 2023

修正されていないため reopen

@m1sk9 m1sk9 reopened this Feb 6, 2023
@m1sk9
Copy link
Contributor Author

m1sk9 commented Feb 8, 2023

:kawae_win:
image

@m1sk9 m1sk9 closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug C-GitHub Actions Category: GitHub Actions P-high Priority: High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant