mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.2 KiB
YAML
70 lines
2.2 KiB
YAML
name: e2e-azure
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'tests/**'
|
|
- '.github/workflows/e2e-azure.yaml'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'tests/**'
|
|
- '.github/workflows/e2e-azure.yaml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
e2e-amd64-aks:
|
|
runs-on: ubuntu-22.04
|
|
# This job is currently disabled since if always evaluates to false. Remove the false check when Azure subscription is enabled
|
|
if: false && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- name: Setup Go
|
|
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
|
with:
|
|
go-version: 1.20.x
|
|
cache-dependency-path: |
|
|
**/go.sum
|
|
**/go.mod
|
|
- name: Setup Flux CLI
|
|
run: |
|
|
make build
|
|
mkdir -p $HOME/.local/bin
|
|
mv ./bin/flux $HOME/.local/bin
|
|
- name: Setup SOPS
|
|
run: |
|
|
wget https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux
|
|
chmod +x sops-v3.7.1.linux
|
|
mkdir -p $HOME/.local/bin
|
|
mv sops-v3.7.1.linux $HOME/.local/bin/sops
|
|
- name: Setup Terraform
|
|
uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2
|
|
with:
|
|
terraform_version: 1.2.8
|
|
terraform_wrapper: false
|
|
- name: Setup Azure CLI
|
|
run: |
|
|
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
|
- name: Run Azure e2e tests
|
|
env:
|
|
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
|
|
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
|
|
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
|
|
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
|
|
run: |
|
|
echo $HOME
|
|
echo $PATH
|
|
ls $HOME/.local/bin
|
|
az login --service-principal -u ${ARM_CLIENT_ID} -p ${ARM_CLIENT_SECRET} -t ${ARM_TENANT_ID}
|
|
cd ./tests/azure
|
|
go test -v -coverprofile cover.out -timeout 60m .
|