diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index 6aadcaf..009d3ec 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -11,10 +11,23 @@ jobs: runs-on: ubuntu-latest 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 uses: https://github.com/actions/checkout@v4 with: 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 uses: https://github.com/actions/setup-node@v4 @@ -84,6 +97,6 @@ jobs: run: | # todo this could cause a race condition git config user.name "CI Bot" git config user.email "ci@dominikmilacher.com" - git tag -f last-deploy HEAD - git remote set-url origin git@"$GIT_HOST_NAME":"$GIT_REPO".git - git push origin last-deploy --force \ No newline at end of file + git tag -f deployed HEAD + #git remote set-url origin git@"$GIT_HOST_NAME":"$GIT_REPO".git + git push origin deployed --force \ No newline at end of file