Skip to content

GitHub Action Playground with Docker Container & Registry

License

Notifications You must be signed in to change notification settings

lyrixx/ga-docker-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action Playground with Docker Container & Registry

This repository is a playground to show how GitHub Action can build Docker images and push them to GitHub Container Registry.

Project description

There are two applications. They are just Nginx container, with a static HTML file.

  • app_1 uses index.html from this repository.
  • app_2 uses index2.html from this repository.

Run the project locally

There are two options.

The fastest one is to use the image from the GitHub Container Registry.

docker-compose pull
docker-compose up

And the one, when you want to update some Docker file

docker-compose up --build

Run the project remotely

Configure the registry in your scheduler, and use the image directly

  • app_1: ghcr.io/lyrixx/test-app-1
  • app_2: ghcr.io/lyrixx/test-app-2

Image tagging

Each commits on the main branch, each tags, and PRs are tagged.

This project follow the semver convention.

CI

The CI build then upload the image to the GitHub Container Registry.

Then is test that each application returns something