Skip to content

trigger

trigger #1

Workflow file for this run

name: e2e tests azure
on:
workflow_dispatch:
pull_request:
push:
jobs:
test:
name: azure
runs-on: ubuntu-latest
strategy:
matrix:
include:
- variant: "azure_private"
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Login to Azure
uses: ./.github/actions/login_azure
with:
azure_credentials: ${{ secrets.UPLOSI_AZURE_E2E_CREDENTIALS }}
- name: Create resource group override
id: rg
env:
variant: ${{ matrix.variant }}
run: |
uuid=$(cat /proc/sys/kernel/random/uuid)
uuid=${uuid:0:8}
resource_group="uplosi_e2e_${variant}_${uuid}"
echo "resource_group=${resource_group}" | tee -a "$GITHUB_OUTPUT"
mkdir -p ./testdata/uplosi.conf.d
cat <<EOF > ./testdata/uplosi.conf.d/0100-azure.conf
[variant.${variant}.azure]
resourceGroup = "${resource_group}"
EOF
- name: Run e2e tests
run: |
:
- name: Delete resource group
if: always()
env:
rg: ${{ steps.rg.outputs.resource_group }}
run: |
az group delete --name "${rg}" --yes