Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
match/container/aws_buildspec.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (37 sloc)
2.21 KB
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
version: 0.2 | |
env: | |
shell: bash | |
variables: | |
LABEL: "1.2.1" | |
exported-variables: | |
- LABEL | |
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 | |
- echo $HUB_DOCKER_COM_TOKEN | docker login --username skoranda --password-stdin | |
- echo Logging in to GitHub | |
- echo $GITHUB_COM_TOKEN | docker login ghcr.io --username skoranda --password-stdin | |
build: | |
commands: | |
- echo Build started on `date` | |
- container/build.sh --image_registry=public.ecr.aws --repository=u0z2s2z8 --label=$LABEL --suffix=$CODEBUILD_BUILD_NUMBER match all | |
- container/build.sh --image_registry=docker.io --repository=comanageproject --label=$LABEL --suffix=$CODEBUILD_BUILD_NUMBER match all | |
- container/build.sh --image_registry=ghcr.io --repository=cilogon --label=$LABEL --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:$LABEL-basic-auth-$CODEBUILD_BUILD_NUMBER | |
- docker push public.ecr.aws/u0z2s2z8/comanage-match:$LABEL-mod_auth_openidc-$CODEBUILD_BUILD_NUMBER | |
- docker push public.ecr.aws/u0z2s2z8/comanage-match:$LABEL-shibboleth-sp-supervisor-$CODEBUILD_BUILD_NUMBER | |
- echo Pushing the Docker images to Docker Hub public repository... | |
- docker push docker.io/comanageproject/comanage-match:$LABEL-basic-auth-$CODEBUILD_BUILD_NUMBER | |
- docker push docker.io/comanageproject/comanage-match:$LABEL-mod_auth_openidc-$CODEBUILD_BUILD_NUMBER | |
- docker push docker.io/comanageproject/comanage-match:$LABEL-shibboleth-sp-supervisor-$CODEBUILD_BUILD_NUMBER | |
- echo Pushing the Docker images to GitHub public repository... | |
- docker push ghcr.io/cilogon/comanage-match:$LABEL-basic-auth-$CODEBUILD_BUILD_NUMBER | |
- docker push ghcr.io/cilogon/comanage-match:$LABEL-mod_auth_openidc-$CODEBUILD_BUILD_NUMBER | |
- docker push ghcr.io/cilogon/comanage-match:$LABEL-shibboleth-sp-supervisor-$CODEBUILD_BUILD_NUMBER |