18 lines
398 B
Bash
Executable file
18 lines
398 B
Bash
Executable file
#!/bin/bash
|
|
|
|
## Login
|
|
|
|
aws ecr get-login-password | docker login --username AWS --password-stdin 185273882442.dkr.ecr.eu-central-1.amazonaws.com
|
|
|
|
## Build the image
|
|
|
|
docker build -f Dockerfile.aws -t oef .
|
|
|
|
## Tag the image
|
|
|
|
docker tag oef:latest 185273882442.dkr.ecr.eu-central-1.amazonaws.com/oef:latest
|
|
|
|
## Push the image
|
|
|
|
docker push 185273882442.dkr.ecr.eu-central-1.amazonaws.com/oef:latest
|
|
|