3333 runs-on : ubuntu-latest
3434
3535 steps :
36+
3637 - name : checkout
37- uses : actions/checkout@v2
38+ uses : actions/checkout@v4
3839 with :
3940 fetch-depth : 0
4041 ref : ${{ github.event.client_payload.branch || github.ref }}
6970 docker pull ${BUILDIMAGE}
7071 docker run ${DOCKER_RUN_OPTIONS} -e TARGET_DIR=${TARGET_DIR} -e BRANCH=${BRANCH} -e DEP_BRANCH=${DEP_BRANCH} -e TAG=${TAG} -e OS_VERSION=${OS_VERSION} --rm ${BUILDIMAGE} /bin/bash -c "${DOCKER_WORKFLOW_SCRIPTS_DIR}/build.sh"
7172 cat ${{ github.workspace }}/github_output >> ${GITHUB_OUTPUT}
73+
7274 - name : publish buildlogs
7375 if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.branch != 'null' }}
7476 uses : thebaptiste/ssh-scp-ssh-pipelines@metwork
@@ -125,19 +127,6 @@ jobs:
125127 cd ${REMOTE}
126128 chmod +x createrepo.sh
127129 ./createrepo.sh .
128- - name : mageia_repo
129- if : ${{ github.event_name != 'pull_request' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.branch != 'null' }}
130- uses : appleboy/ssh-action@master
131- with :
132- host : ${{ secrets.METWORKPUB_HOST }}
133- username : ${{ secrets.METWORKPUB_USERNAME }}
134- password : ${{ secrets.METWORKPUB_PASSWORD }}
135- port : 22
136- script : |
137-
138- docker run -v /pub:/pub --rm mageia:6 /bin/bash -c "genhdlist2 --nolock --allow-empty-media ${{ steps.SetVariables.outputs.rpm_dir }}"
139-
140-
141130 - name : publish doc
142131 if : ${{ github.event_name != 'pull_request' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.branch != 'null' }}
143132 uses : thebaptiste/ssh-scp-ssh-pipelines@metwork
@@ -156,44 +145,40 @@ jobs:
156145 '${LOCAL}/*' => ${REMOTE}
157146
158147
159- - name : dispatch plugins buildimage centos7 from centos6
160- if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false ' && steps.SetVariables.outputs.branch != 'null' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos6 ' }}
161- uses : peter-evans/repository-dispatch@v1
148+ - name : dispatch plugins rocky8 from rocky8 tag
149+ if : ${{ github.ref_type == 'tag ' && steps.SetVariables.outputs.branch != 'null' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos8 ' }}
150+ uses : peter-evans/repository-dispatch@v3
162151 with :
163152 token : ${{ secrets.METWORK_ACCESS_TOKEN }}
164- repository : metwork-framework/docker-mfservplugins-centos7-buildimage
153+ repository : metwork-framework/docker-mfxxx-plugins
165154 event-type : metwork-trigger-${{ steps.SetVariables.outputs.branch }}
166- client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "os ": "${{ steps.SetVariables.outputs.os }}"}'
167- - name : dispatch plugins buildimage centos8 from centos6
168- if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false ' && steps.SetVariables.outputs.branch != 'null' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos6 ' }}
169- uses : peter-evans/repository-dispatch@v1
155+ client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "tag ": "${{ github.ref_name }}", "repo": "mfserv", "rocky_version": "8 "}'
156+ - name : dispatch plugins rocky9 from rocky8 tag
157+ if : ${{ github.ref_type == 'tag ' && steps.SetVariables.outputs.branch != 'null' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos8 ' }}
158+ uses : peter-evans/repository-dispatch@v3
170159 with :
171160 token : ${{ secrets.METWORK_ACCESS_TOKEN }}
172- repository : metwork-framework/docker-mfservplugins-centos8-buildimage
161+ repository : metwork-framework/docker-mfxxx-plugins
173162 event-type : metwork-trigger-${{ steps.SetVariables.outputs.branch }}
174- client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "os ": "${{ steps.SetVariables.outputs.os }}"}'
175- - name : dispatch plugins buildimage centos8 from centos8
176- if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false' && steps.SetVariables.outputs.branch != 'null' && steps. BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos8' }}
177- uses : peter-evans/repository-dispatch@v1
163+ client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "tag ": "${{ github.ref_name }}", "repo": "mfserv", "rocky_version": "9 "}'
164+ - name : dispatch plugins buildimage rocky8 from rocky8
165+ if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos8' }}
166+ uses : peter-evans/repository-dispatch@v3
178167 with :
179168 token : ${{ secrets.METWORK_ACCESS_TOKEN }}
180169 repository : metwork-framework/docker-mfservplugins-centos8-buildimage
181170 event-type : metwork-trigger-${{ steps.SetVariables.outputs.branch }}
182171 client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "os": "${{ steps.SetVariables.outputs.os }}"}'
183-
184- - name : dispatch python2 tests
185- if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false' && steps.SetVariables.outputs.branch != 'null' && steps.BuildStep.outputs.bypass == 'false' }}
186- uses : peter-evans/repository-dispatch@v1
172+ - name : dispatch plugins buildimage rocky9 from rocky8
173+ if : ${{ github.event_name != 'pull_request' && steps.SetVariables.outputs.skip_dispatch == 'false' && steps.BuildStep.outputs.bypass == 'false' && steps.SetVariables.outputs.os == 'centos8' }}
174+ uses : peter-evans/repository-dispatch@v3
187175 with :
188176 token : ${{ secrets.METWORK_ACCESS_TOKEN }}
189- repository : metwork-framework/mfserv_python2_tests
177+ repository : metwork-framework/docker-mfservplugins-rocky9-image
190178 event-type : metwork-trigger-${{ steps.SetVariables.outputs.branch }}
191179 client-payload : ' {"branch": "${{ steps.SetVariables.outputs.branch }}", "os": "${{ steps.SetVariables.outputs.os }}"}'
192180
193181
194182
195183
196184
197-
198-
199-
0 commit comments