From 886e33d051629d5c2d48d302640f81c2f4059281 Mon Sep 17 00:00:00 2001 From: Andrea Morabito <78792023+and-mora@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:34:47 +0100 Subject: [PATCH] chore: minor fixes on actions (#19) --- .github/workflows/build-n-push-main.yml | 2 +- .github/workflows/deploy.yml | 1 + .github/workflows/post-merge.yml | 4 ++-- src/main/terraform/container_app.tf | 6 ++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-n-push-main.yml b/.github/workflows/build-n-push-main.yml index 6218c56..7d9d5ec 100644 --- a/.github/workflows/build-n-push-main.yml +++ b/.github/workflows/build-n-push-main.yml @@ -33,7 +33,7 @@ jobs: with: registry: https://ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GIT_PAT }} - name: Set up QEMU uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 097123f..28206c2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,5 @@ name: Deploy +run-name: Deploy to ${{ inputs.environment }} on: workflow_dispatch: diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 8bd41b3..876091e 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -87,7 +87,7 @@ jobs: with: registry: https://ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GIT_PAT }} - name: Set up QEMU uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 @@ -184,7 +184,7 @@ jobs: with: registry: https://ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GIT_PAT }} - name: Set up QEMU uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 diff --git a/src/main/terraform/container_app.tf b/src/main/terraform/container_app.tf index c78a795..08278a1 100644 --- a/src/main/terraform/container_app.tf +++ b/src/main/terraform/container_app.tf @@ -26,6 +26,12 @@ resource "azurerm_container_app" "rtp-activator" { transport = "HTTP" } + startup_probe { + port = 8080 + path = "/actuator/health" + transport = "HTTP" + } + env { name = "TZ" value = "Europe/Rome"