-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when a version tag is created
- Loading branch information
Showing
8 changed files
with
164 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release | ||
|
||
on: | ||
# runs when creating a release tag | ||
push: | ||
tags: | ||
# use a more specific pattern when a maintenance version is branched | ||
- v[0-9]+.** | ||
|
||
jobs: | ||
# Note: cockpit-agama-playwright is currently not submitted | ||
|
||
update_rust: | ||
uses: ./.github/workflows/obs-staging-shared.yml | ||
# pass all secrets | ||
secrets: inherit | ||
with: | ||
install_packages: obs-service-cargo_audit obs-service-cargo_vendor | ||
project_name: systemsmanagement:Agama:Devel | ||
package_name: agama-cli | ||
|
||
update_web: | ||
uses: ./.github/workflows/obs-staging-shared.yml | ||
# pass all secrets | ||
secrets: inherit | ||
with: | ||
install_packages: obs-service-node_modules | ||
project_name: systemsmanagement:Agama:Devel | ||
package_name: cockpit-agama | ||
|
||
update_service: | ||
uses: ./.github/workflows/obs-service-shared.yml | ||
# pass all secrets | ||
secrets: inherit | ||
with: | ||
project_name: systemsmanagement:Agama:Devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Update OBS Service Package | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
OBS_USER: | ||
required: true | ||
OBS_PASSWORD: | ||
required: true | ||
|
||
inputs: | ||
project_name: | ||
description: OBS project name | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update_service: | ||
# do not run in forks | ||
if: github.repository == 'openSUSE/agama' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: registry.opensuse.org/opensuse/tumbleweed:latest | ||
|
||
steps: | ||
- name: Configure and refresh repositories | ||
# disable unused repositories to have a faster refresh | ||
run: zypper modifyrepo -d repo-non-oss repo-openh264 repo-update && zypper ref | ||
|
||
- name: Install tools | ||
run: zypper --non-interactive install --no-recommends | ||
git | ||
obs-service-format_spec_file | ||
osc | ||
ruby | ||
'rubygem(gem2rpm)' | ||
'rubygem(yast-rake)' | ||
|
||
- name: Git Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# fetch all history, we need to find the latest tag and offset for the version number | ||
fetch-depth: 0 | ||
|
||
- name: Fix file owner | ||
# workaround for a strict git check | ||
run: chown -R -c 0 . | ||
|
||
- name: Configure osc | ||
run: .github/workflows/configure_osc.sh | ||
env: | ||
OBS_USER: ${{ secrets.OBS_USER }} | ||
OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }} | ||
|
||
- name: Commit the rubygem-agama package to ${{ inputs.project_name }} | ||
run: rake osc:commit | ||
working-directory: ./service | ||
env: | ||
# do not build the package with "osc", it takes long time | ||
# and does not provide much value | ||
SKIP_OSC_BUILD: 1 | ||
OBS_PROJECT: ${{ inputs.project_name }} | ||
|
||
- name: Submit the rubygem-agama package | ||
# only when a tag has been pushed | ||
if: ${{ github.ref_type == 'tag' }} | ||
# the package has been comitted in the previous step, just submit it | ||
run: rake osc:sr:force | ||
working-directory: ./service | ||
env: | ||
OBS_PROJECT: ${{ inputs.project_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters