Setting: [main] CI/CD checkout 부분 수정
Some checks failed
baekjoon-bot-cicd / build_push_deploy (push) Failing after 14s
Some checks failed
baekjoon-bot-cicd / build_push_deploy (push) Failing after 14s
This commit is contained in:
@@ -8,7 +8,18 @@ jobs:
|
||||
build_push_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Manual checkout (supports /gitea subpath)
|
||||
env:
|
||||
ACTOR: ${{ github.actor }}
|
||||
REPO: ${{ github.repository }} # owner/repo
|
||||
SHA: ${{ github.sha }}
|
||||
TOKEN: ${{ secrets.NKEY_PAT }} # repo read 권한 있는 PAT
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git init .
|
||||
git remote add origin "https://${ACTOR}:${TOKEN}@nkeystudy.site/gitea/${REPO}.git"
|
||||
git fetch --no-tags --prune --depth=1 origin "${SHA}"
|
||||
git checkout -q FETCH_HEAD
|
||||
|
||||
- name: Docker login
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user