This commit is contained in:
parent
3bd2562954
commit
a9d9ae5b1c
@ -11,10 +11,23 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Configure ssh
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
cat << 'EOF' > ~/.ssh/config
|
||||||
|
Host *
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
UserKnownHostsFile=/dev/null
|
||||||
|
EOF
|
||||||
|
chmod 600 ~/.ssh/config
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # whole history and tags, can refine this later
|
fetch-depth: 0 # whole history and tags, can refine this later
|
||||||
|
ssh-key: ${{ secrets.GIT_SSH_KEY }}
|
||||||
|
ssh-strict: false
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
@ -84,6 +97,6 @@ jobs:
|
|||||||
run: | # todo this could cause a race condition
|
run: | # todo this could cause a race condition
|
||||||
git config user.name "CI Bot"
|
git config user.name "CI Bot"
|
||||||
git config user.email "ci@dominikmilacher.com"
|
git config user.email "ci@dominikmilacher.com"
|
||||||
git tag -f last-deploy HEAD
|
git tag -f deployed HEAD
|
||||||
git remote set-url origin git@"$GIT_HOST_NAME":"$GIT_REPO".git
|
#git remote set-url origin git@"$GIT_HOST_NAME":"$GIT_REPO".git
|
||||||
git push origin last-deploy --force
|
git push origin deployed --force
|
||||||
Loading…
x
Reference in New Issue
Block a user