Verified Commit 2978a472 authored by Recolic Keghart's avatar Recolic Keghart 🎱

auto build

parent 901c09d4
version: 0.1
env:
variables:
IMAGE_TAG: "latest"
IMAGE_REPO_NAME: "recolic/rserver-status"
phases:
install:
runtime-versions:
docker: 18
pre_build:
commands:
- echo Logging in to Docker Hub...
- eval "$(AWS_DOCKER_HUB_LOGIN)"
# 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