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

update-tag-list: Automatically set up Debian code name #66

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

abetomo
Copy link
Contributor

@abetomo abetomo commented Oct 8, 2024

When to switch to Bookworm: 8917cb7

README was rewritten manually.

Comment on lines 11 to 14
file = File.open("#{type_path}/Dockerfile")
code_name = file.readline.chomp.split('-').pop.capitalize
file.close
code_name
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
file = File.open("#{type_path}/Dockerfile")
code_name = file.readline.chomp.split('-').pop.capitalize
file.close
code_name
File.readlines("#{type_path}/Dockerfile", chomp: true).split("-").last.capitalize

@@ -37,7 +44,7 @@
type = type_path.gsub("/", "-")
distribution_id, postgresql_version, = type.split("-")
distribution = distribution_labels[distribution_id]
distribution += " Bullseye" if distribution_id == "debian"
distribution += " " + debian_code_name(type_path) if distribution_id == "debian"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
distribution += " " + debian_code_name(type_path) if distribution_id == "debian"
distribution += " #{debian_code_name(type_path)}" if distribution_id == "debian"

@kou kou merged commit 7e92d3b into main Oct 8, 2024
18 checks passed
@kou kou deleted the automatically-set-up-debian-code-name branch October 8, 2024 05:52
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