diff --git a/.obs/workflows.yml b/.obs/workflows.yml new file mode 100644 index 000000000..0d03cdc16 --- /dev/null +++ b/.obs/workflows.yml @@ -0,0 +1,11 @@ +--- +update-ci-container: + filters: + event: push + steps: + - trigger_services: + project: systemsmanagement:SCC:containers + package: rmt-ci-container + - rebuild_package: + project: systemsmanagement:SCC:containers + package: rmt-ci-container diff --git a/ci/check-version-matches.rb b/ci/check-version-matches.rb index 3a6b1fef0..f255d4855 100755 --- a/ci/check-version-matches.rb +++ b/ci/check-version-matches.rb @@ -6,9 +6,9 @@ def modified_files end def spec_version - return @_spec_version if defined?(@_spec_version) + return @spec_version if defined?(@spec_version) - @_spec_version = File.open('package/obs/rmt-server.spec', 'r') do |f| + @spec_version = File.open('package/obs/rmt-server.spec', 'r') do |f| f.each_line do |line| break line.split(':').last.strip if /^Version/.match?(line) end @@ -16,10 +16,10 @@ def spec_version end def rmt_version - return @_rmt_version if defined?(@_rmt_version) + return @rmt_version if defined?(@rmt_version) - require_relative '../lib/rmt.rb' - @_rmt_version = RMT::VERSION + require_relative '../lib/rmt' + @rmt_version = RMT::VERSION end def failure(msg)