Git Product home page Git Product logo

learn_cicd's Introduction

CI/CD 환경 구축

  1. Travis CI를 통한 지속적인 통합
  2. Github Action을 통한 Docker Hub push
  3. Github Action을 통한 서버 재시작

Travis CI

  1. Travis CI에 깃허브 및 레포지토리 연동
  2. .travis.yml 설정 파일 추가
  3. Test 파일 추가
  4. 깃허브 레포지토리 Settings/Branches/Branch protection rules에 브랜치명(main or master)에 Status Check 설정 github_travis_ci_config
  5. 새로운 PR 생성 시 테스트 성공여부 확인 github_travis_pr

Docker Hub push

  1. 연결할 도커허브 아이디 및 패스워드 깃허브 레포지토리 Settings/Secrets에 추가 (ID: DOCKERHUB_USERNAME, PW: DOCKERHUB_TOKEN)
  2. Github Action 등록 Actions -> set up a workflow yourself
  3. workflow 파일 등록

Docker Run Image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.