Skip to content
Snippets Groups Projects
Verified Commit 7903af8b authored by Recolic Keghart's avatar Recolic Keghart
Browse files

auto build

parent 901c09d4
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment