Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
update terraform to provision endpoints - change docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 6, 2023
1 parent 8d980c5 commit e7a1f25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ jobs:

- name: Build and deploy docker to ECR
run: |
bash ./docker/build-docker.sh -n podaac-hydrocron -v "${{ env.THE_VERSION }}" >> env.DOCKER_TAG
echo "DOCKER_TAG=$(bash ./docker/build-docker.sh -n podaac-hydrocron -v '${{ env.THE_VERSION }}')" >> $GITHUB_ENV
# bash ./docker/build-docker.sh -n podaac-hydrocron -v "${{ env.THE_VERSION }}"
bash echo "----------"
bash echo ${{ env.DOCKER_TAG }}
bash ./docker/push-docker-ecr.sh --tf-venue "sit" --docker-tag ${{ env.DOCKER_TAG }}
Expand Down
4 changes: 2 additions & 2 deletions docker/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This script is intended to be run by the CI/CD pipeline to build a specific version of the Hydrocron API.

#set -Eeo pipefail
set -Eeo pipefail

POSITIONAL=()
while [[ $# -gt 0 ]]
Expand Down Expand Up @@ -56,5 +56,5 @@ dockerTagVersion=$(echo "${service_version}" | tr "+" _)

tar_filename="${service_name}-${service_version}.tar.gz"
docker build -t "${repositoryName}":"${dockerTagVersion}" --build-arg SOURCE="dist/${tar_filename}" -f "$SCRIPTPATH"/Dockerfile "$PROJECT_DIR" 1>&2
echo "*******"

echo "${repositoryName}":"${dockerTagVersion}"
2 changes: 1 addition & 1 deletion docker/push-docker-ecr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This script is intended to be run by the CI/CD pipeline to push a docker tag previously built by build-docker.sh

#set -Eeo pipefail
set -Eeo pipefail

POSITIONAL=()
while [[ $# -gt 0 ]]
Expand Down

0 comments on commit e7a1f25

Please sign in to comment.