diff --git a/.github/actions/tf-setup/action.yml b/.github/actions/tf-setup/action.yml index 2f08432b..f8c3095c 100644 --- a/.github/actions/tf-setup/action.yml +++ b/.github/actions/tf-setup/action.yml @@ -32,11 +32,19 @@ runs: env: RESOURCE_GROUP_NAME: ${{ inputs.azure-resource-group }} NAME: ${{ inputs.app-name }} - SKU_NAME: P3v3 + SKU_NAME: S2 + OBJECT_ID: ${{ inputs.azure-object-id }} + TENANT_ID: ${{ inputs.azure-tenant-id }} + CLIENT_ID: ${{ inputs.azure-client-id }} + SUBSCRIPTION_ID: ${{ inputs.azure-subscription-id }} run: | echo resource_group_name=\""$RESOURCE_GROUP_NAME"\" >> terraform.tfvars echo name=\""$NAME"\" >> terraform.tfvars echo sku_name=\""$SKU_NAME"\" >> terraform.tfvars + echo object_id=\""$OBJECT_ID"\" >> terraform.tfvars + echo tenant_id=\""$TENANT_ID"\" >> terraform.tfvars + echo client_id=\""$CLIENT_ID"\" >> terraform.tfvars + echo subscription_id=\""$SUBSCRIPTION_ID"\" >> terraform.tfvars az config set defaults.group=$RESOURCE_GROUP_NAME - name: Set environment shell: bash diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index ab88e00b..177f32d6 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -41,7 +41,7 @@ jobs: USER_INPUT="${{ github.event.inputs.middleware-docker-tag }}" echo "docker_tag=$( #this gives a new sha as default if dispatch input is empty - echo ${USER_INPUT:-"${{ github.sha }}"} + echo ${USER_INPUT:-$(uuidgen)} )" >> $GITHUB_OUTPUT - name: Check if image exists id: image_check @@ -78,7 +78,7 @@ jobs: USER_INPUT="${{ github.event.inputs.ocr-docker-tag }}" echo "docker_tag=$( #this gives a new sha as default if dispatch input is empty - echo ${USER_INPUT:-"${{ github.sha }}"} + echo ${USER_INPUT:-$(uuidgen)} )" >> $GITHUB_OUTPUT - name: Check if image exists id: image_check @@ -132,7 +132,7 @@ jobs: azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - object-id: ${{ secrets.AZURE_OBJECT_ID }} + azure-object-id: ${{ secrets.AZURE_OBJECT_ID }} app-name: reportvision deploy-middleware: