Verified Commit 7903af8b authored by Recolic Keghart's avatar Recolic Keghart 🎱

auto build

parent 901c09d4
version: 0.2
env:
variables:
IMAGE_TAG: "latest"
IMAGE_REPO_NAME: "recolic/rserver-status"
parameter-store:
DOCKER_PSWD: "recolic_docker_pswd"
phases:
pre_build:
commands:
- echo Logging in to Docker Hub...
- docker login -u recolic -p "$DOCKER_PSWD"
# Type the command to log in to your Docker Hub account here.
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG .
- docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $IMAGE_REPO_NAME:$IMAGE_TAG
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push $IMAGE_REPO_NAME:$IMAGE_TAG
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment