-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
532868b
commit 379fe51
Showing
9 changed files
with
131 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package main | ||
|
||
import ( | ||
"bytes" | ||
"fmt" | ||
"os" | ||
"os/exec" | ||
) | ||
|
||
const accessKey = "" | ||
const secretKey = "" | ||
const repoUrl = "" | ||
|
||
func main() { | ||
_ = os.Setenv("AWS_ACCESS_KEY_ID", accessKey) | ||
_ = os.Setenv("AWS_SECRET_ACCESS_KEY", secretKey) | ||
_ = os.Setenv("REGION_NAME", "us-east-1") | ||
path, err := os.Getwd() | ||
if err != nil { | ||
panic(err) | ||
} | ||
command := fmt.Sprintf("$(AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s aws ecr get-login --no-include-email --region %s) && docker build docker -t %s && docker push %s", accessKey, secretKey, "us-east-1", repoUrl, repoUrl) | ||
fmt.Println(command) | ||
cmd := exec.Command("/bin/bash", "-c", command) | ||
cmd.Dir = path | ||
fmt.Println(cmd.Env) | ||
var stdout bytes.Buffer | ||
var stderr bytes.Buffer | ||
cmd.Stdout = &stdout | ||
cmd.Stderr = &stderr | ||
err = cmd.Run() | ||
if err != nil { | ||
fmt.Println(stderr.String()) | ||
panic(err) | ||
} else { | ||
fmt.Println(stdout.String()) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM nginx:alpine | ||
COPY index.html /usr/share/nginx/html/index.html | ||
EXPOSE 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<title>Site is currently Deploying</title> | ||
<style> | ||
body { | ||
text-align: center; | ||
padding: 150px; | ||
} | ||
|
||
h1 { | ||
font-size: 50px; | ||
} | ||
|
||
body { | ||
font: 20px Helvetica, sans-serif; | ||
color: #333; | ||
} | ||
|
||
article { | ||
display: block; | ||
text-align: left; | ||
width: 650px; | ||
margin: 0 auto; | ||
} | ||
|
||
a { | ||
color: #dc8100; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
color: #333; | ||
text-decoration: none; | ||
} | ||
</style> | ||
|
||
<article> | ||
<h1>We’ll be back soon!</h1> | ||
<div> | ||
<p>These things to take some time. While you wait why not <a href="https://kiteykite.netlify.com" target="_blank" rel="noopener">play this game</a> </p> | ||
<p>— The Team</p> | ||
</div> | ||
</article> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -427,6 +427,7 @@ output "backendUrl" { | |
} | ||
` | ||
|
||
|
||
const ContainerTemplate = `[ | ||
{ | ||
"name": "${fargate_container_name}", | ||
|