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
aws ecs describe-clusters --cluster `aws ecs list-clusters --query 'clusterArns[]' --output text` --include TAGS --query 'clusters[?contains(tags[].value, `MY_TAG_VALUE`)].clusterName' --output text |
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 bash | |
set -ex | |
GITLAB_REGISTRY="XXXXXX" | |
GITLAB_URL="XXXXX" | |
AWS_REGION="XXXX" | |
PROFILE="XXXX" | |
AWS_ACCOUNT="XXXXXXX" | |
ECR_ARN=XXXXX | |
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
pipeline { | |
agent none | |
stages { | |
stage('Run Tests') { | |
parallel { | |
stage('Test On Windows') { | |
agent { | |
label "windows" | |
} | |
steps { |
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
def matchers = ["develop", "master", "0.0.1", "release-0.0.1", "hotfix-0.0.1", "test"] | |
pipeline { | |
stages { | |
stage("test"){ | |
allOf{ | |
expression { | |
matchers.each{ | |
match -> | |
if (! match ==~ /^(develop)$|^(master)$|^(\d+\.\d+\.\d+)$|^(release-\d+\.\d+\.\d+)$|^(hotfix-\d+\.\d+\.\d+)$/){ |
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
withCredentials([ | |
usernamePassword(credentialsId: argoConfig['credentialsId'], usernameVariable: "ARGO_USR", passwordVariable: "ARGO_PW"), | |
usernamePassword(credentialsId: gitConfig['credentialsId'], usernameVariable: "GIT_USR", passwordVariable: "GIT_PW") | |
]){ | |
} |
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
find . \( -name "*.msa" -o -name "*.lambda" -o -name "*.front" \) | xargs basename | sed -E 's/(.*)\.(msa|lambda|front)/\1/g' |
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
data "aws_ami" "amazon-linux-2" { | |
most_recent = true | |
owners = ["amazon"] | |
name_regex = "^amzn2-ami-hvm.*-ebs" | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
} |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { | |
"Service": "ec2.amazonaws.com" | |
}, | |
"Effect": "Allow", | |
"Sid": "" |