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

[MISC] Fix build workflow #16

Merged
merged 4 commits into from
Nov 27, 2023
Merged

[MISC] Fix build workflow #16

merged 4 commits into from
Nov 27, 2023

Conversation

dragomirp
Copy link
Contributor

Rock refuses to pack with latest rockcraft

@@ -23,7 +23,7 @@ jobs:
version=$(yq '(.version|split("-"))[0]' rockcraft.yaml)
base=$(yq '(.base|split(":"))[1]' rockcraft.yaml)
tag=${version}-${base}_edge
sed -i "s/${app_version}/${tag}/g" rockcraft.yaml
sed -i "s/${app_version}/${base}/g" rockcraft.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Underscore no longer accepted. Do we really need to change the version on the fly?

Copy link
Contributor

Choose a reason for hiding this comment

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

re: Do we really need to change the version on the fly?

Otherwise how to set OCI factory compatible version/tag (8.0.33-22.04_edge)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise how to set OCI factory compatible version/tag (8.0.33-22.04_edge)?

The registry tag is set in the publish workflow here. I don't think we need to change the version in rockcraft.yaml at all with our current release pipeline.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure why it is here. BTW, MongoDB ROCK is not touching it: https://github.com/canonical/charmed-mongodb-rock/blob/5-22.04/.github/workflows/publish.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following up on MM discussion, will remove the update to rockcraft.yaml and see how it goes.

@@ -1,5 +1,5 @@
name: charmed-postgresql # the name of your ROCK
base: ubuntu:22.04 # the base environment for this ROCK
base: ubuntu@22.04 # the base environment for this ROCK
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dots in deprecated.

Copy link
Contributor

Choose a reason for hiding this comment

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

@shayancanonical JFYI, re: MySQL ROCK.

@dragomirp
Copy link
Contributor Author

@taurus-forever I think this will affect rebuilds of the Mysql Rock as well.

@@ -1,5 +1,5 @@
name: charmed-postgresql # the name of your ROCK
base: ubuntu:22.04 # the base environment for this ROCK
base: ubuntu@22.04 # the base environment for this ROCK
Copy link
Contributor

Choose a reason for hiding this comment

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

@shayancanonical JFYI, re: MySQL ROCK.

@@ -23,7 +23,7 @@ jobs:
version=$(yq '(.version|split("-"))[0]' rockcraft.yaml)
base=$(yq '(.base|split(":"))[1]' rockcraft.yaml)
tag=${version}-${base}_edge
sed -i "s/${app_version}/${tag}/g" rockcraft.yaml
sed -i "s/${app_version}/${base}/g" rockcraft.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

re: Do we really need to change the version on the fly?

Otherwise how to set OCI factory compatible version/tag (8.0.33-22.04_edge)?

@dragomirp dragomirp merged commit b10a658 into 14-22.04 Nov 27, 2023
2 checks passed
@dragomirp dragomirp deleted the fix-packing branch November 27, 2023 12:25
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.

3 participants