workflows/trigger-gitlab: run Gitlab CI in new image-builder project
We have a new project in Gitlab https://gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer and we want to run the CI there instead.
This commit is contained in:
parent
f45bdf3fb3
commit
717f28adfb
1 changed files with 3 additions and 3 deletions
6
.github/workflows/trigger-gitlab.yml
vendored
6
.github/workflows/trigger-gitlab.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
SCHUTZBOT_SSH_KEY: ${{ secrets.SCHUTZBOT_SSH_KEY }}
|
IMAGEBUILDER_BOT_GITLAB_SSH_KEY: ${{ secrets.IMAGEBUILDER_BOT_GITLAB_SSH_KEY }}
|
||||||
steps:
|
steps:
|
||||||
- name: Report status
|
- name: Report status
|
||||||
uses: haya14busa/action-workflow_run-status@v1
|
uses: haya14busa/action-workflow_run-status@v1
|
||||||
|
|
@ -77,11 +77,11 @@ jobs:
|
||||||
- name: Push to gitlab
|
- name: Push to gitlab
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${SCHUTZBOT_SSH_KEY}" > ~/.ssh/id_rsa
|
echo "${IMAGEBUILDER_BOT_GITLAB_SSH_KEY}" > ~/.ssh/id_rsa
|
||||||
chmod 400 ~/.ssh/id_rsa
|
chmod 400 ~/.ssh/id_rsa
|
||||||
touch ~/.ssh/known_hosts
|
touch ~/.ssh/known_hosts
|
||||||
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
|
||||||
git remote add ci git@gitlab.com:osbuild/ci/osbuild-composer.git
|
git remote add ci git@gitlab.com:redhat/services/products/image-builder/ci/osbuild-composer.git
|
||||||
SKIP_CI=$(cat SKIP_CI.txt)
|
SKIP_CI=$(cat SKIP_CI.txt)
|
||||||
if [[ "${SKIP_CI}" == true ]];then
|
if [[ "${SKIP_CI}" == true ]];then
|
||||||
git push -f -o ci.variable="SKIP_CI=true" ci
|
git push -f -o ci.variable="SKIP_CI=true" ci
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue