Skip to content

Commit

Permalink
test.yml: pass image_tag to tg
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 5, 2023
1 parent 19809b0 commit 51ca97f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Expose environment
run: echo '${{ toJSON(github) }}'

- name: set tag
id: set_tag
if: ${{ !env.ACT }}
run: |
BRANCH_NAME=${{ github.head_ref || github.ref_name }}
echo TAG=${{ env.TAG_PREFIX}}-${BRANCH_NAME/\//_} >> $GITHUB_ENV
echo "image_tag=$TAG" >> $GITHUB_OUTPUT
echo "image_tag=${{ env.TAG }}" >> $GITHUB_OUTPUT
- name: set tag when running locally in act
if: ${{ env.ACT }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/tf/ecs/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module "ecs" {
}
proxy = {
name = "proxy"
image = "${var.ecr_registry}/nginx-proxy:${var.image_tag}"
image = "${var.ecr_registry}/nginx-proxy:latest"
health_check = {
command = ["CMD-SHELL", "curl -so /dev/null http://localhost/health || exit 1"]
}
Expand Down

0 comments on commit 51ca97f

Please sign in to comment.