Skip to content

Commit

Permalink
container add buildspec for hotfix-1.1.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Feb 7, 2023
1 parent 706a964 commit 21e009e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions container/aws_buildspec_hotfix-1.1.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 0.2

env:
shell: bash

phases:
pre_build:
commands:
- echo Logging in to Amazon ECR...
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/u0z2s2z8
- echo Logging in to Docker Hub
- docker login --username skoranda --password $HUB_DOCKER_COM_TOKEN
build:
commands:
- echo Build started on `date`
- SHORT_COMMIT_HASH="${CODEBUILD_RESOLVED_SOURCE_VERSION:0:8}"
- container/build.sh --image_registry=public.ecr.aws --repository=u0z2s2z8 --label=hotfix-1.1.x-$SHORT_COMMIT_HASH --suffix=$CODEBUILD_BUILD_NUMBER match all
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker images to AWS public repository...
- docker push public.ecr.aws/u0z2s2z8/comanage-match:hotfix-1.1.x-$SHORT_COMMIT_HASH-basic-auth-$CODEBUILD_BUILD_NUMBER
- docker push public.ecr.aws/u0z2s2z8/comanage-match:hotfix-1.1.x-$SHORT_COMMIT_HASH-mod_auth_openidc-$CODEBUILD_BUILD_NUMBER
- docker push public.ecr.aws/u0z2s2z8/comanage-match:hotfix-1.1.x-$SHORT_COMMIT_HASH-shibboleth-sp-supervisor-$CODEBUILD_BUILD_NUMBER

0 comments on commit 21e009e

Please sign in to comment.