Skip to content

Conversation

@lostsnow
Copy link
Member

@lostsnow lostsnow commented Apr 26, 2025

Description

Add Docker package workflow.

Changes

Build and push Docker image to GHCR with tags:

  • latest for master branch.
  • release-* or v* for Git tags, depends on the Git tag format.
  • sha-<sha> for Git commit hash, only with pull requests, master branch and Git tags.

For pull request, only ensures that the docker build succeeds, does not push the image.
See: docker/build-push-action#751

@lostsnow lostsnow requested a review from Volte6 as a code owner April 26, 2025 05:45
@lostsnow
Copy link
Member Author

@Volte6 It looks like this workflow needs some permissions.

@Volte6
Copy link
Member

Volte6 commented Apr 26, 2025

I tried a few things to get it to work, but I'm not very familiar with how to set this up... so far no luck! But i'll take another crack at it soon to figure it out.

@Volte6
Copy link
Member

Volte6 commented Apr 26, 2025

Error: buildx failed with: ERROR: denied: installation not allowed to Create organization package

Search the web says:

https://github.com/orgs/community/discussions/57724

Made these permission changes at the org and repo level, but doesn't seem to solve it.

@colinsenner - You have more experience with this, any recommendations?

@lostsnow
Copy link
Member Author

It looks like can't use the default GITHUB_TOKEN in a pull request: docker/build-push-action#751. I will remove the pull request trigger.

@lostsnow lostsnow force-pushed the feature/docker-package-workflow branch from 7084d89 to 17266a4 Compare April 27, 2025 10:54
@lostsnow lostsnow requested a review from Volte6 April 27, 2025 10:58
@lostsnow lostsnow merged commit e37138d into GoMudEngine:master Apr 28, 2025
2 checks passed
@lostsnow lostsnow deleted the feature/docker-package-workflow branch April 28, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants