2023-11-27 07:56:34 +01:00
|
|
|
name: OSC Pull Custom Image Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ factory ]
|
|
|
|
jobs:
|
|
|
|
osc_job:
|
2024-01-06 17:17:29 +01:00
|
|
|
runs-on: osc_patch_label
|
2023-11-27 07:56:34 +01:00
|
|
|
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: |
|
2023-11-27 08:28:22 +01:00
|
|
|
/usr/bin/ls ${{ gitea.workspace }}
|
2023-11-27 07:56:34 +01:00
|
|
|
- name: Using OBS checkout
|
|
|
|
with:
|
|
|
|
osc_user: 'alexlau'
|
2024-01-06 17:17:29 +01:00
|
|
|
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
|
2024-01-08 03:18:31 +01:00
|
|
|
osc_path: 'home:alexlau:branches:openSUSE:Factory'
|
2023-11-27 07:56:34 +01:00
|
|
|
osc_package: 'bash'
|
|
|
|
osc_action: 'buildlog'
|
2024-01-06 17:17:29 +01:00
|
|
|
|
2023-11-27 07:56:34 +01:00
|
|
|
env: # Or as an environment variable
|
|
|
|
osc_pass: ${{ secrets.OSCPASS }}
|
|
|
|
run: |
|
2024-01-08 03:18:31 +01:00
|
|
|
OSC_CONFIG= OSC_USERNAME="$env(INPUT_OSC_USER)" OSC_CREDENTIALS_MGR_CLASS="$env(INPUT_OSC_CRED)" OSC_PASSWORD="$evn(osc_pass)" osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)"
|