This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
validate_terraform: | |
docker: | |
- image: hashicorp/terraform | |
steps: | |
- checkout | |
- run: | |
name: Validate Terraform Formatting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
condition { | |
name = "request_is_us" | |
statement = "req.http.X-Geoip-Continent ~ \"(NA|SA|OC|AS)\" || (!F_eu_origin.healthy && F_us_origin.healthy)" | |
type = "REQUEST" | |
priority = 100 | |
} | |
condition { | |
name = "request_is_eu" | |
statement = "req.http.X-Geoip-Continent !~ \"(NA|SA|OC|AS)\" || (!F_us_origin.healthy && F_eu_origin.healthy)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To build the application run `make install`. | |
# | |
# This target depends on the `node_modules` target. | |
install: node_modules | |
# This target depends on a file called `package.json`. | |
# | |
# If `package.json` doesn't exist, make complains that you need one! Run `npm init` to generate one. | |
# | |
# If `package.json` exists, but `node_modules/` doesn't, make will run `npm install`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const yargs = require("yargs"); | |
const Octokit = require("@octokit/rest"); | |
const headers = { | |
accept: "application/vnd.github.mercy-preview+json" | |
}; | |
/** | |
* manage-github-topics [command] [owner]/[repo] [topic ...topic] | |
* manage-github-topics list --token $GITHUB_API_TOKEN Financial-Times/tako |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Heavily modified from https://github.com/japaric/trust/blob/gh-pages/install.sh. | |
help() { | |
cat <<'EOF' | |
Install a binary release of a Rust crate hosted on GitHub. | |
Usage: | |
install.sh [options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove the last line from CODEOWNERS | |
sed -i '' -e '$ d' CODEOWNERS | |
# Append the following line to CODEOWNERS | |
echo "* @Financial-Times/etg" >> CODEOWNERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Starting Ocado slot checker...' | |
COUNT=0 | |
CURRENT_STATUS_CODE=404 | |
echo | |
ocado_slot_status() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
+ # Docker Hub authentication managed by the shared `dockerhub-shared` context. | |
+ docker-auth: &docker-auth | |
+ auth: | |
+ username: $DOCKERHUB_USERNAME | |
+ password: $DOCKERHUB_ACCESS_TOKEN | |
jobs: | |
test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
prometheus: | |
image: prom/prometheus | |
ports: | |
- 9090:9090 | |
volumes: | |
- ./prometheus.yml:/prometheus/prometheus.yml | |
command: | |
- '--web.enable-remote-write-receiver' |
OlderNewer