Add Bitbucket mirror to the Git Mesh
This commit is contained in:
@@ -46,6 +46,20 @@ jobs:
|
|||||||
echo "GITHUB_TOKEN secret not found. Skipping GitHub mirror."
|
echo "GITHUB_TOKEN secret not found. Skipping GitHub mirror."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Mirror to Bitbucket
|
||||||
|
env:
|
||||||
|
BITBUCKET_USER: ${{ secrets.BITBUCKET_USER }}
|
||||||
|
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
|
||||||
|
run: |
|
||||||
|
if [ -n "$BITBUCKET_TOKEN" ]; then
|
||||||
|
git remote add bitbucket https://${BITBUCKET_USER}:${BITBUCKET_TOKEN}@bitbucket.org/mrhavens/${{ github.event.repository.name }}.git
|
||||||
|
git push --force --all bitbucket
|
||||||
|
git push --force --tags bitbucket
|
||||||
|
echo "Successfully mirrored to Bitbucket!"
|
||||||
|
else
|
||||||
|
echo "BITBUCKET_TOKEN secret not found. Skipping Bitbucket mirror."
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Sync to Radicle Network
|
- name: Sync to Radicle Network
|
||||||
run: |
|
run: |
|
||||||
RAD_POD=$(kubectl get pods -n radicle -l app=radicle -o jsonpath="{.items[0].metadata.name}")
|
RAD_POD=$(kubectl get pods -n radicle -l app=radicle -o jsonpath="{.items[0].metadata.name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user