Repo for some personal docker tests for automating some stuff.
Currently containing two workflows to build and push a docker image to ghcr and DockerHub every time a new tags created and pushed (e.g. by using git tag ... & git push --follow-tags)
The images can be pulled from here:
docker pull ghcr.io/hbertsch/docker-cicd:latestdocker pull hbertsch/docker-cicd:latestThis little program collects data (in this case quotes) from an API by using the requests python package and saves the collected data to a Docker Volume. The volume will be auto-created if you use the provided Docker Composefile to run the container.
Docker compose will consume either the Dockerfile or pull the image from one of the provided container registries(depending which one you comment in/out in the Dockercomposefile). The only thing you need to do after checking out this repo is to cdinto the root dir and type
docker compose up