项目作者: namhj94

项目描述 :
Github Container Registry & Github Action & Dockerfile 💥
高级语言: JavaScript
项目地址: git://github.com/namhj94/Actions-ghcr-CI-CD-Pipeline.git
创建时间: 2020-12-15T05:19:01Z
项目社区:https://github.com/namhj94/Actions-ghcr-CI-CD-Pipeline

开源协议:

下载


Publish Docker image

Github Action & Github Container Registry

Description

Github Container Registry 사용과 Github Action을 통한 CI 연습

Step

  1. Dockerfile로 이미지 빌드
  2. CI를 위한 GithubAction pipeline 작성
  3. Github Container Registry에 자동으로 이미지 Push

    CI/CD(Delivery) Pipeline

    1. code commit & push -> Build Dockerfile -> image -> Push to ghcr.io

    Image Usage

    build Dockerfile

    1. docker build -t <IMAGENAME> .

    Run Image

    1. docker run --rm -d -p HOSTPORT:CONTAINERPORT ghcr.io/namhj94/<IMAGENAME>