Skip to content

Commit

Permalink
Fix Ruby version for ondemand-runtime (#267)
Browse files Browse the repository at this point in the history
* Fix Ruby version for ondemand-runtime

* Pull first

* Use latest runtime with passenger RPM build

* Avoid duplicate repo update
  • Loading branch information
treydock authored Feb 6, 2024
1 parent 489fd0a commit ecaec7c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build-image:
- if: '$CI_COMMIT_BRANCH !~ /^(main|[0-9]\.[0-9])$/ && $CI_COMMIT_TAG == null'
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG !~ /v[0-9].+/
script:
- '[ -z ${CI_COMMIT_TAG+x} ] || bundle exec rake ood_packaging:buildbox:pull || true'
- '[ -z ${CI_COMMIT_TAG+x} ] && { bundle exec rake ood_packaging:buildbox:pull || true ; }'
- bundle exec rake ood_packaging:buildbox:build
parallel:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion lib/ood_packaging/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module OodPackaging
'(ubuntu|debian)' => '3',
'default' => '1-8'
},
'ondemand-runtime' => '3.1.4',
'ondemand-runtime' => '3.1.5',
'scl-utils' => '2.0.3',
'passenger' => '6.0.17',
'cjose' => '0.6.1',
Expand Down
3 changes: 2 additions & 1 deletion packages/ondemand-runtime/rpm/ondemand-runtime.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
%global ruby ruby
%global nodejs nodejs
%global apache httpd
%global ruby_version 3.1
%endif
%if 0%{?amzn} == 2023
%global ruby ruby3.2
%global nodejs nodejs
%global apache httpd
%global ruby_version 3.2
%endif
%global ruby_version 3.0
%global ondemand_gem_home %{_datadir}/gems/%{ruby_version}
%global ondemand_apps_gem_home %{ondemand_gem_home}/apps
%global ondemand_core_gem_home %{ondemand_gem_home}/ondemand
Expand Down
2 changes: 1 addition & 1 deletion packages/passenger/rpm/passenger.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%define release_version %{package_release}
%define ngix_release_version 1

%define runtime_version 3.1.4
%define runtime_version 3.1.5

%global nginx_user %{?scl_prefix}nginx
%global nginx_group %{nginx_user}
Expand Down
2 changes: 1 addition & 1 deletion release-manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
major: '3.1'
full: '3.1.0'
runtime: '3.1.4'
runtime: '3.1.5'

# release
ondemand-release:
Expand Down
4 changes: 1 addition & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def main():
rpms.append(p)
rpms_released = release_packages(rpms, host, rpm_path, args.pkey, args.force)
srpms_released = release_packages(srpms, host, srpm_path, args.pkey, args.force)
if rpms_released and update:
update_repo(host, release, dist, arch, release_type, args.pkey)
if srpms_released and update:
if (rpms_released or srpms_released) and update:
update_repo(host, release, dist, arch, release_type, args.pkey)

if __name__ == '__main__':
Expand Down

0 comments on commit ecaec7c

Please sign in to comment.