Skip to content

Commit

Permalink
docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Oct 19, 2023
1 parent fe30d02 commit 0de3bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,17 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_SERVICES_{0}', env.TARGET_ENV_UPPERCASE)] }}
AWS_DEFAULT_REGION: us-west-2

TF_VAR_hydrocronapi_api_docker_image: "ghcr.io/podaac/hydrocron:${{ env.THE_VERSION }}"
TF_VAR_hydrocronapi_api_docker_image: "ghcr.io/podaac/hydrocron:0.0.1"

run: |
echo "--------"
echo ${{ env.THE_ENV }}
echo ${{ env.THE_VERSION }}
echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
echo ${{ env.REGISTRY }}
echo ${{ github.actor }}
echo ${{ steps.meta.outputs.tags }}
echo ${{ steps.meta.outputs.labels }}
terraform init -reconfigure -backend-config="bucket=podaac-services-sit-terraform" -backend-config="region=us-west-2"
terraform plan -var-file=tfvars/${{ env.THE_ENV }}.tfvars -var="app_version=${{ env.THE_VERSION }}" -out="tfplan"
terraform apply -auto-approve tfplan
2 changes: 1 addition & 1 deletion terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ variable "profile" {
}

variable "docker_tag" {
default = "ghcr.io/podaac/hydrocron-api:sit"
default = "ghcr.io/podaac/hydrocron-api:0.0.1"
}

variable "service_name" {
Expand Down

0 comments on commit 0de3bf0

Please sign in to comment.