A Semaphore demo CI/CD pipeline for Kubernetes.
This is an example application and CI/CD pipeline showing how to build, test and
deploy a microservice to Kubernetes using Semaphore 2.0.
Ingredients:
If you’re new to Semaphore, feel free to fork this repository and use it to
create a project.
The CI/CD pipeline is defined in .semaphore
directory and looks like this:
To run the microservice:
bundle install --path vendor/bundle
bundle exec rackup
To run tests:
bundle exec rspec
To build and run Docker container:
docker build -t semaphore-demo-ruby-kubernetes .
docker run -p 80:4567 semaphore-demo-ruby-kubernetes
curl localhost
> hello world :))
Copyright (c) 2022 Rendered Text
Distributed under the MIT License. See the file LICENSE.