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

Add the release process of ShardingSphere Agent's Docker Image to the release guide #33377

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

linghengqian
Copy link
Member

Fixes #33350 .

Changes proposed in this pull request:


Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.

Comment on lines +587 to +608
3.5 Log in to GitHub Packages Container Registry

```shell
docker login ghcr.io/apache/shardingsphere
```

3.6 Build and push ShardingSphere Agent Docker image

```shell
cd ~/shardingsphere
git checkout ${RELEASE.VERSION}
./mvnw -am -pl distribution/agent -Prelease,docker.buildx.push -T 1C -DskipTests clean package
```

3.7 Confirm the successful release

Check [GitHub Packages](https://github.com/apache/shardingsphere/pkgs/container/shardingsphere-agent) for released images, and make sure that the image supports both `linux/amd64` and `linux/arm64`.

```shell
docker logout
```

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the personal access token (classic) I generated from https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry does not have permission to manipulate the ASF namespace. And I'm not sure who has this authority, all PMCs? Some ASF members?

@terrymanu terrymanu merged commit 6390215 into apache:master Oct 26, 2024
12 checks passed
@terrymanu terrymanu added this to the 5.5.2 milestone Oct 26, 2024
@linghengqian linghengqian deleted the release-agent branch October 26, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Push the Docker Image of ShardingSphere Agent 5.5.2+ to Github Packages
2 participants