Skip to content

tadashi0713/circleci-demo-ip-ranges

Repository files navigation

Demo for CircleCI IP Ranges features

CircleCI

IP Ranges is a feature for CircleCI customers who need to configure IP-based access to their restricted environments.

This demo shows how to run CircleCI tests(Cypress) to IP-based restricted application using IP Ranges.

IP-based restricted application

  • Nginx config
    • Allow lists of IP address ranges and deny others
    • List of IP address ranges can be found here
server {
  # CircleCI IP Ranges
  allow 107.22.40.20;
  allow 18.215.226.36;
  allow 3.228.208.40;
  ...

  deny all;

Cypress tests with/without IP ranges

cypress_with_ip_ranges:
  executor: cypress/browsers-chrome77
  circleci_ip_ranges: true # set true to enable IP Ranges feature
  steps:
    - run:
        name: Show IP address
        command: curl -s https://checkip.amazonaws.com/
    - run: npm run cypress

About

Demo to run CircleCI jobs(Cypress) to IP-based restricted application using IP Ranges feature.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •