Skip to content

csidyel/semaphore-demo-ruby-kubernetes

This branch is 2 commits ahead of, 4 commits behind semaphoreci-demos/semaphore-demo-ruby-kubernetes:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4fd3cc0 · Jun 14, 2023

History

52 Commits
Jun 14, 2023
Feb 14, 2019
Feb 14, 2019
Feb 14, 2019
May 9, 2022
Nov 11, 2020
Feb 14, 2019
May 9, 2022
May 9, 2022
May 9, 2022
Feb 14, 2019
Feb 14, 2019
Nov 25, 2020
Sep 29, 2021

Repository files navigation

Semaphore CI/CD demo for Kubernetes

Build Status

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:

  • Ruby Sinatra as web framework
  • RSpec for tests
  • Packaged in a Docker container
  • Container pushed to Docker Hub registry
  • Deployed to Kubernetes

CI/CD on Semaphore

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:

CI/CD pipeline on Semaphore

Local application setup

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 :))

Additional documentation

License

Copyright (c) 2022 Rendered Text

Distributed under the MIT License. See the file LICENSE.

About

A Semaphore demo CI/CD pipeline for Kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 74.1%
  • Dockerfile 25.9%