Skip to content

Instantly share code, notes, and snippets.

View SahilDhingraa's full-sized avatar

Sahil SahilDhingraa

View GitHub Profile
@SahilDhingraa
SahilDhingraa / github-actions-docker-to-ec2.md
Last active August 9, 2024 18:51
This GitHub Actions workflow automates the process of building a Docker image and deploying it to an EC2 instance.

GitHub Actions CI/CD Workflow for Docker and EC2 Deployment

This GitHub Actions workflow automates the process of building a Docker image and deploying it to an EC2 instance. It consists of two main jobs: build-docker and run-on-ec2.

Workflow YAML

name: OneHealth CI/CD

on: