Skip to content

Commit 0a2b944

Browse files
FOR TEST ONLY
1 parent fe4d011 commit 0a2b944

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

.github/workflows/crmsh-cd.yml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,8 @@ on: push
99
env:
1010
PACKAGE_NAME: crmsh
1111
CONTAINER_IMAGE: nyang23/obs-continuous-delivery:latest
12-
OBS_USER: ${{ secrets.OBS_USER }}
13-
OBS_PASS: ${{ secrets.OBS_PASS }}
14-
OBS_PROJECT: network:ha-clustering:Unstable
15-
TARGET_PROJECT: network:ha-clustering:Factory
1612

1713
jobs:
1814
integration:
19-
if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'master'
15+
if: github.repository == 'ClusterLabs/crmsh'
2016
uses: ./.github/workflows/crmsh-ci.yml
21-
22-
delivery:
23-
needs: integration
24-
runs-on: ubuntu-24.04
25-
timeout-minutes: 10
26-
steps:
27-
- uses: actions/checkout@v4
28-
- name: delivery process
29-
run: |
30-
docker pull "${CONTAINER_IMAGE}"
31-
docker run -t -v "$(pwd)":/package:ro \
32-
-e OBS_USER=$OBS_USER \
33-
-e OBS_PASS=$OBS_PASS \
34-
-e OBS_PROJECT=$OBS_PROJECT \
35-
-e PACKAGE_NAME=$PACKAGE_NAME \
36-
"${CONTAINER_IMAGE}" \
37-
/bin/bash -c "cp -r /package ~/package && cd ~/package && /scripts/upload.sh"
38-
39-
submit:
40-
needs: delivery
41-
runs-on: ubuntu-24.04
42-
timeout-minutes: 10
43-
steps:
44-
- uses: actions/checkout@v4
45-
- name: submit process
46-
run: |
47-
docker pull "${CONTAINER_IMAGE}"
48-
docker run -t \
49-
-e OBS_USER=$OBS_USER \
50-
-e OBS_PASS=$OBS_PASS \
51-
-e OBS_PROJECT=$OBS_PROJECT \
52-
-e PACKAGE_NAME=$PACKAGE_NAME \
53-
-e TARGET_PROJECT=$TARGET_PROJECT \
54-
"${CONTAINER_IMAGE}" \
55-
/bin/bash -c "cd ~ && /scripts/submit.sh"

0 commit comments

Comments
 (0)