Add AWS files for CD/CI
This commit is contained in:
parent
c1cbe39711
commit
c702f039ce
5 changed files with 101 additions and 3 deletions
6
aws/imagedefinitions.json
Normal file
6
aws/imagedefinitions.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"name": "oef",
|
||||
"imageUri": "185273882442.dkr.ecr.eu-central-1.amazonaws.com/oef:latest"
|
||||
}
|
||||
]
|
BIN
aws/imagedefinitions.zip
Normal file
BIN
aws/imagedefinitions.zip
Normal file
Binary file not shown.
93
aws/oef-pipeline.json
Normal file
93
aws/oef-pipeline.json
Normal file
|
@ -0,0 +1,93 @@
|
|||
{
|
||||
"pipeline": {
|
||||
"name": "oef",
|
||||
"roleArn": "arn:aws:iam::185273882442:role/service-role/AWSCodePipelineServiceRole-eu-central-1-oef",
|
||||
"artifactStore": {
|
||||
"type": "S3",
|
||||
"location": "codepipeline-eu-central-1-790111279784"
|
||||
},
|
||||
"stages": [
|
||||
{
|
||||
"name": "Source",
|
||||
"actions": [
|
||||
{
|
||||
"name": "Source",
|
||||
"actionTypeId": {
|
||||
"category": "Source",
|
||||
"owner": "AWS",
|
||||
"provider": "ECR",
|
||||
"version": "1"
|
||||
},
|
||||
"runOrder": 1,
|
||||
"configuration": {
|
||||
"ImageTag": "latest",
|
||||
"RepositoryName": "oef"
|
||||
},
|
||||
"outputArtifacts": [
|
||||
{
|
||||
"name": "SourceArtifact"
|
||||
}
|
||||
],
|
||||
"inputArtifacts": [],
|
||||
"region": "eu-central-1",
|
||||
"namespace": "SourceVariables"
|
||||
},
|
||||
{
|
||||
"name": "imagedefinitions",
|
||||
"actionTypeId": {
|
||||
"category": "Source",
|
||||
"owner": "AWS",
|
||||
"provider": "S3",
|
||||
"version": "1"
|
||||
},
|
||||
"runOrder": 1,
|
||||
"configuration": {
|
||||
"PollForSourceChanges": "false",
|
||||
"S3Bucket": "codepipeline-eu-central-1-790111279784",
|
||||
"S3ObjectKey": "oef/SourceArti/imagedefinitions.zip"
|
||||
},
|
||||
"outputArtifacts": [
|
||||
{
|
||||
"name": "imagedefjson"
|
||||
}
|
||||
],
|
||||
"inputArtifacts": [],
|
||||
"region": "eu-central-1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Deploy",
|
||||
"actions": [
|
||||
{
|
||||
"name": "Deploy",
|
||||
"actionTypeId": {
|
||||
"category": "Deploy",
|
||||
"owner": "AWS",
|
||||
"provider": "ECS",
|
||||
"version": "1"
|
||||
},
|
||||
"runOrder": 1,
|
||||
"configuration": {
|
||||
"ClusterName": "default",
|
||||
"ServiceName": "oef-service"
|
||||
},
|
||||
"outputArtifacts": [],
|
||||
"inputArtifacts": [
|
||||
{
|
||||
"name": "imagedefjson"
|
||||
}
|
||||
],
|
||||
"region": "eu-central-1"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"version": 5
|
||||
},
|
||||
"metadata": {
|
||||
"pipelineArn": "arn:aws:codepipeline:eu-central-1:185273882442:oef",
|
||||
"created": "2020-02-29T11:15:29.906000+01:00",
|
||||
"updated": "2020-02-29T11:39:18.093000+01:00"
|
||||
}
|
||||
}
|
|
@ -95,7 +95,7 @@ func version() string {
|
|||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return string(version)
|
||||
return strings.TrimSpace(string(version))
|
||||
}
|
||||
|
||||
func toInt(value float64) int {
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
|
||||
<footer class="footer text-center">
|
||||
<div class="container">
|
||||
<span class="text-center text-muted">Questo software è stato sviluppato da <a href="https://github.com/remogatto">Andrea
|
||||
Fazzi</a> per le <a href="https://www.olimpiadi-economiaefinanza.it">Olimpiadi di Economia e Finanza 2020</a> ({{version}})
|
||||
<span class="text-center text-muted">Piattaforma di gara sviluppata per le <a href="https://www.olimpiadi-economiaefinanza.it">Olimpiadi di Economia e Finanza 2020</a> ({{version}})
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in a new issue