init project

Signed-off-by: Alex Lau(AvengerMoJo) <alau@suse.com>
This commit is contained in:
Alex Lau 2024-10-28 17:08:55 +08:00
commit 0059f6359f
No known key found for this signature in database
GPG Key ID: 3F28752074CC2261
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,48 @@
name: OSC Pull Custom Image Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches: [ factory ]
jobs:
osc_job:
runs-on: osc_patch_label
name: opensuse osc custom container checkout test
steps:
- name: Checkout the repo code
uses: actions/checkout@v3
- name: List all files in the repo
run: |
echo "Workspace: ${{ gitea.workspace }}"
/usr/bin/ls ${{ gitea.workspace }}
- name: Using OBS checkout (remote)
with:
osc_user: 'alexlau'
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
osc_path: 'home:alexlau:branches:openSUSE:Factory'
osc_package: 'bash'
env: # Or as an environment variable
osc_pass: ${{ secrets.OSCPASS }}
run:
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
- name: OBS format spec check (local)
with:
osc_user: 'alexlau'
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
osc_path: 'home:alexlau:branches:openSUSE:Factory'
osc_package: 'bash'
env: # Or as an environment variable
osc_pass: ${{ secrets.OSCPASS }}
run: |
cd $INPUT_OSC_PATH/$INPUT_OSC_PACKAGE
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc service run format_spec_file
- name: OBS soiurce validate (local)
with:
osc_user: 'alexlau'
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
osc_path: 'home:alexlau:branches:openSUSE:Factory'
osc_package: 'bash'
env: # Or as an environment variable
osc_pass: ${{ secrets.OSCPASS }}
run: |
cd $INPUT_OSC_PATH/$INPUT_OSC_PACKAGE
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc service run source_validator

1
Readme.md Normal file
View File

@ -0,0 +1 @@
Testing Submodule gitea diff