Skip to content

Commit

Permalink
[CIVIS-6103] fix missing public keys (#91)
Browse files Browse the repository at this point in the history
* add public keys

* add temporary push file

* break up RUN command for debugging

* seperate keys

* remmove apt-key commands

* curl

* try again

* update build spec command

* add a space

* stop push for now

* copy pasta

* collapse run commands

* collapse commands

* fix tag

* cleanup

* Update buildspec/release.yaml

use --all-tags

Co-authored-by: Michael Peterson <[email protected]>

---------

Co-authored-by: Michael Peterson <[email protected]>
  • Loading branch information
thatguyinabeanie and mwpeterson authored Jul 31, 2023
1 parent 6e2cb3c commit 73a6170
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions buildspec/release.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@

version: 0.2
phases:
pre_build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
build:
commands:
- echo Logging in to Amazon ECR...
- aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI}
- echo Building the Docker image...
- PATCH_TAG=${TAG_NAME#"v"} # major.minor.patch
- MINOR_TAG=${PATCH_TAG%.*} # major.minor
- MAJOR_TAG=${MINOR_TAG%.*} # major
- docker build -t ${REPOSITORY_URI}:${PATCH_TAG} -t ${REPOSITORY_URI}:${MINOR_TAG} -t ${REPOSITORY_URI}:${MAJOR_TAG} .
- docker push ${REPOSITORY_URI}
- docker image push --all-tags ${REPOSITORY_URI}
post_build:
commands:
- echo Build completed!
Expand Down

0 comments on commit 73a6170

Please sign in to comment.