Compare commits
3 Commits
f167e64d00
...
af03c23c9f
| Author | SHA1 | Date | |
|---|---|---|---|
| af03c23c9f | |||
| 68dd17f895 | |||
| 8249df15df |
@@ -37,3 +37,24 @@ jobs:
|
|||||||
echo "$ANSIBLE_VAULT_PASSWORD" > .vault_pass.txt
|
echo "$ANSIBLE_VAULT_PASSWORD" > .vault_pass.txt
|
||||||
ansible-playbook --vault-password-file .vault_pass.txt deploy-to-prod.yaml
|
ansible-playbook --vault-password-file .vault_pass.txt deploy-to-prod.yaml
|
||||||
rm .vault_pass.txt
|
rm .vault_pass.txt
|
||||||
|
|
||||||
|
promote_stable:
|
||||||
|
runs-on: self-hosted
|
||||||
|
needs: deploy
|
||||||
|
steps:
|
||||||
|
- name: Promote master to stable
|
||||||
|
env:
|
||||||
|
SPEEDBB_REPO: ${{ vars.SPEEDBB_REPO }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_ACTOR: ${{ gitea.actor }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
REPO="$SPEEDBB_REPO"
|
||||||
|
if [ -n "$GITEA_TOKEN" ]; then
|
||||||
|
REPO=$(echo "$SPEEDBB_REPO" | sed "s#https://#https://${GITEA_ACTOR}:${GITEA_TOKEN}@#")
|
||||||
|
fi
|
||||||
|
git clone --quiet --depth=1 --branch=stable "$REPO" repo
|
||||||
|
cd repo
|
||||||
|
git fetch origin master
|
||||||
|
git merge --ff-only FETCH_HEAD
|
||||||
|
git push origin stable
|
||||||
|
|||||||
@@ -98,5 +98,5 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"version": "26.0.2",
|
"version": "26.0.2",
|
||||||
"build": "45"
|
"build": "49"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user