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

Gh actions v31 setup #128

Merged
merged 7 commits into from
Mar 26, 2024
Merged

Gh actions v31 setup #128

merged 7 commits into from
Mar 26, 2024

Conversation

micryc
Copy link
Contributor

@micryc micryc commented Mar 14, 2024

No description provided.

@micryc micryc requested a review from frantuma March 14, 2024 13:20
@micryc micryc self-assigned this Mar 14, 2024
branches: ["v31"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master"]
Copy link
Member

Choose a reason for hiding this comment

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

wrong branch?

NAMESPACE_NAME="swagger-oss"
K8S_OBJECT_TYPE="daemonsets"
K8S_OBJECT_NAME="swagger-petstore-31"
DEPLOY_IMAGE="swaggerapi/swagger-petstore31:$SC_RELEASE_TAG"
Copy link
Member

Choose a reason for hiding this comment

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

check tags and image name in dockerhub, this is wrong, should be swaggerapi/petstore31. Also wrong in corresponding file in master and possibly v2

docker push $DOCKER_PETSTORE_IMAGE_NAME:$SC_RELEASE_TAG
docker push $DOCKER_PETSTORE_IMAGE_NAME:latest
echo "docker images:"
docker images | grep -i petstore3
Copy link
Member

Choose a reason for hiding this comment

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

should be 31?

mvn versions:set -DnewVersion=$SC_VERSION
mvn versions:commit

#####################
Copy link
Member

Choose a reason for hiding this comment

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

this is meant to go through all files which have a ref to the version and update accordingly.
In case of v31 there are many. Do a search for 1.0.3 and add here the corresponding update scripts (test locally)

ALSO: need to update first manually everything to 1.0.4-SNAPSHOT, including pom

id = lastReleaseId(tag)
payload = "{\"tag_name\":\"" + tag + "\", "
payload += "\"draft\":" + "false" + ", "
payload += "\"target_commitish\":\"" + "master" + "\"}"
Copy link
Member

Choose a reason for hiding this comment

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

wrong branch?

result = ""

baseurl = "https://api.github.com/repos/swagger-api/swagger-petstore/pulls/"
content = ghApiClient.readUrl('repos/swagger-api/swagger-petstore/pulls?state=closed&base=master&per_page=100')
Copy link
Member

Choose a reason for hiding this comment

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

wrong branch?

generally recheck all ref to branches not to point to master but to correct one

payload += "\"body\":" + json.dumps(content) + ", "
payload += "\"draft\":" + "true" + ", "
payload += "\"prerelease\":" + "false" + ", "
payload += "\"target_commitish\":\"" + "master" + "\"}"
Copy link
Member

Choose a reason for hiding this comment

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

wrong branch?

python $CUR/CI/publishRelease.py "$SC_RELEASE_TAG"

#####################
### update the version to next snapshot in maven project with set version
Copy link
Member

Choose a reason for hiding this comment

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

like in prepare release address all needed files

@micryc micryc requested a review from frantuma March 21, 2024 11:00
@micryc micryc merged commit 1d20e8e into v31 Mar 26, 2024
4 checks passed
@micryc micryc deleted the gh-actions-v31-setup branch March 26, 2024 12:11
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