This repository contains resources for automating Docker image creation and deployment using GitHub Actions and Docker. It includes a workflow for building an HTTPD-based Docker image, pushing it to Docker Hub, and running it on self-hosted runners.
-
gh_docker.yml
- Automates:
- Login to Docker Hub.
- Place this file inside the .github/workflows directory
- Docker image build and push on github-hosted runners.
- Running containers on self-hosted runners.
- Automates:
-
Dockerfile
- Creates an HTTPD-based image.
- Downloads and deploys the "Carvilla" website template.
- Automatic Build & Push: GitHub Actions workflow tags images using
github.run_number
and pushes them to Docker Hub. - Self-Hosted Deployment: Supports deploying and running containers on custom runners.
-
Setup Secrets:
DOCKER_USERNAME
: Docker Hub username.DOCKER_PASSWORD
: Docker Hub access token.
-
Trigger the Workflow:
- Push changes to the repository to start the GitHub Actions workflow.
-
Customize Dockerfile:
- Update the
Dockerfile
to suit your project needs.
- Update the
Contributions are welcome! Fork the repository and submit pull requests to enhance workflows or Docker configurations.