Skip to content

Commit

Permalink
Add obs workflow to build the ci-container automatically on master push
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch committed Feb 6, 2024
1 parent 4fb683d commit 664f02d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions ci/check-version-matches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ 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
end
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)
Expand Down

0 comments on commit 664f02d

Please sign in to comment.