-
Notifications
You must be signed in to change notification settings - Fork 17
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
franck
committed
Feb 8, 2020
1 parent
34cf37b
commit a4fe8e8
Showing
3 changed files
with
66 additions
and
53 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 was deleted.
Oops, something went wrong.
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,46 @@ | ||
# #This file is used by AWS codebuild. | ||
# --- | ||
# version: 0.2 | ||
|
||
# env: | ||
# variables: | ||
# IMAGE_REPO_NAME: uneet/frontend | ||
# parameter-store: | ||
# DOCKER_USERNAME: DOCKER_USERNAME | ||
# DOCKER_PASSWORD: DOCKER_PASSWORD | ||
|
||
# phases: | ||
# pre_build: | ||
# commands: | ||
# - echo Logging into Docker Hub... | ||
# - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD | ||
# - IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7) | ||
# - echo image that we are using is $IMAGE_TAG | ||
|
||
# install: | ||
# runtime-versions: | ||
# docker: 18 | ||
|
||
# build: | ||
# commands: | ||
# - echo Build starting on `date` | ||
# - echo Build the Docker image... | ||
# - echo We are using the docker image available at $IMAGE_REPO_NAME | ||
# - echo image that we are using is $IMAGE_TAG | ||
# - echo we are using the latest build for that image for deployment | ||
# - 'sed -i "s,<\!-- COMMIT: -->,<\!-- COMMIT: $CODEBUILD_RESOLVED_SOURCE_VERSION -->,g" client/main.html' | ||
# - docker build -t $IMAGE_REPO_NAME:latest . | ||
# - docker tag $IMAGE_REPO_NAME:latest $IMAGE_REPO_NAME:$IMAGE_TAG | ||
|
||
# post_build: | ||
# commands: | ||
# - test "$CODEBUILD_BUILD_SUCCEEDING" == "1" || exit 1 | ||
# # START - Why do we need to push the Docker image to Docker Hub again?? | ||
# #- echo Pushing build to Docker Hub... | ||
# #- docker push $IMAGE_REPO_NAME:latest | ||
# #- docker push $IMAGE_REPO_NAME:$IMAGE_TAG | ||
# #- printf '[{"name":"%s","imageUri":"%s"}]' meteor $IMAGE_REPO_NAME:$IMAGE_TAG > $CODEBUILD_SRC_DIR/imagedefinitions.json | ||
# # END - Why do we need to push the Docker image to Docker Hub again?? | ||
|
||
# artifacts: | ||
# files: imagedefinitions.json |