/github-actions-test

CI/CD using github actions, Containerization using docker

Primary LanguageJavaScript

CI/CD using github actions

Website : https://dhruvinparikh93.github.io/github-actions-test/

github-actions-test CI

SSH KEY GEN

ssh-keygen -t rsa -b 4096 -C "youremailhere@example.com" -N ""

Build docker image locally

$ docker build -t github-actions-test-image -f "./Docker/Dockerfile" .

Run locally build docker image

$ docker run --name myname -p 8080:5000 --rm github-actions-test-image:latest

Push image to docker hub

$ docker tag github-actions-test docker.io/dhruvingbc/github-actions-test:node-0.0.1
$ docker tag github-actions-test docker.io/dhruvingbc/github-actions-test:node-latest
$ docker push docker.io/dhruvingbc/github-actions-test:node-0.0.1
$ docker push docker.io/dhruvingbc/github-actions-test:latest

Download and run dockerimage from dockerhub

$ docker run --name myname -p 8080:5000 --rm dhruvingbc/github-actions-test:latest

Open http://localhost:8080 in the browser.

References