Skip to content

Commit

Permalink
Add ARM runners to e2e test suite
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jan 20, 2025
1 parent 3f9a35e commit 61a29e4
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
- distroless
kubernetes:
- v1.32.0
runs-on: ubuntu-latest
runner:
- ubuntu-24.04
- ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: read
Expand All @@ -39,30 +42,39 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ github.ref_name }}
KUBERNETES_VERSION: ${{ matrix.kubernetes }}
FLUX_VERSION: ${{ github.event.inputs.version }}
RUNNER_TYPE: ${{ matrix.runner }}
run: |
VERSION=$(gh release view --json tagName -q '.tagName')
branch=${{ github.ref_name }}
prefix="release-"
if [[ "${branch}" =~ ^$prefix.* ]]; then
VERSION=${branch#"$prefix"}
if [[ "${BRANCH}" =~ ^$prefix.* ]]; then
VERSION=${BRANCH#"$prefix"}
fi
if [ "${{ github.event.inputs.version }}" != "" ]; then
VERSION="${{ github.event.inputs.version }}"
if [[ "${FLUX_VERSION}" != "" ]]; then
VERSION="${FLUX_VERSION}"
fi
KUBERNETES="${KUBERNETES_VERSION}-amd64"
if [[ "${RUNNER_TYPE}" =~ .*arm.* ]]; then
KUBERNETES="${KUBERNETES_VERSION}-arm64"
fi
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "kubernetes=${KUBERNETES}" >> $GITHUB_OUTPUT
- name: Setup Flux
uses: fluxcd/flux2/action@5350425cdcd5fa015337e09fa502153c0275bd4b #v2.4.0
with:
version: ${{ steps.release.outputs.version }}
- name: Setup Kubernetes
uses: helm/kind-action@ae94020eaf628e9b9b9f341a10cc0cdcf5c018fb # v1.11.0
with:
version: v0.24.0
version: v0.26.0
cluster_name: flux
node_image: ghcr.io/fluxcd/kindest/node:${{ matrix.kubernetes }}-amd64
node_image: ghcr.io/fluxcd/kindest/node:${{ steps.release.outputs.kubernetes }}
- name: Install Flux
id: install
run: |
Expand Down

0 comments on commit 61a29e4

Please sign in to comment.