본문 바로가기
반응형

개발/Git8

GitHub Actions에서 build시 사용할 환경 변수 넣기 자꾸 build에서 실패했다. 로그를 살펴보면 401 에러였는데 API키는 환경변수에 넣어놓았기 때문에 next 내부에서 일어나는 어떤 문제라고 생각하고 Error: 401 Unauthorized: {"data":[{"id":"5413bc","type":"api_error","attributes":{"code":"INVALID_AUTHORIZATION_HEADER","details":{}}}]} at s (/home/runner/work/blog/blog/.next/server/chunks/724.js:8:121) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.c [as generat.. 2023. 12. 28.
Amplify에서 GitHub actions 로 배포 자동화 flow 만들기 Amplify에서 GitHub actions 로 배포 자동화 flow 만들기 예전에 회사에서 amplify로 호스팅된 페이지를 배포하는데 환경변수 이슈때문에 배포가 지연된 적이 있다. 환경변수 이슈와 별개로 이같은 상황이 재발하는 것을 방지하기 위해 GitHub actions로 prebuild하여 사전에 문제를 파악하도록 세팅한적이 있다. 근데 지금 공부를하다가 배포 자동화를 하는 방법을 알게 되었다. amplify 웹훅을 이용하여 release/* 브랜치가 열리고 모든 workflow를 통과하면 main에 merge하지 않아도 배포시키는 것인데 아주 쉽다. 별개로 main은 상용 환경이기 때문에 trigger를 브랜치 create말고 다른 것으로 바꾸는게 좋을 것 같다. 자동 빌드 비활성화 main 브.. 2023. 12. 25.
Git flow 만든사람이 git flow 쓰지말래 -> trunk based 어때 https://nvie.com/posts/a-successful-git-branching-model/ A successful Git branching model In this post I present a Git branching strategy for developing and releasing software as I’ve used it in many of my projects, and which has turned out to be very successful. nvie.com 위 글 읽어보면 git flow 만든 사람이 git flow 쓰지말란 글이다. Git flow 만든사람이 git flow 쓰지말래 10년전에 git flow를 만들 당시에는 웹앱을 염두하지 않았지만, 10년이 더 지난 지금 .. 2023. 12. 20.
remote: Permission to xxx.git denied to github-actions[bot]. remote: Permission to xxx.git denied to github-actions[bot]. github action으로 version patch up을 자동화 하고 싶어서 다음과 같이 yaml을 작성했는데, 위 이미지와 같은 에러가 떴다. name: Bump Version on: push: branches: - main jobs: bump-version: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: git config --global user.email "github-actions@example.com" - run: git config --global user.name "GitHub Actions" - uses: a.. 2023. 9. 4.
반응형