Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 30 additions & 11 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Az CLI login
uses: azure/login@v2
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
Expand All @@ -51,14 +54,14 @@ jobs:
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
az acr login -n ${{ vars.ACR_NAME }}
make retina-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
BUILDX_ACTION=--push
else
make retina-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
fi
env:
Expand Down Expand Up @@ -86,6 +89,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Az CLI login
uses: azure/login@v2
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
Expand All @@ -102,15 +108,15 @@ jobs:
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
az acr login -n ${{ vars.ACR_NAME }}
make retina-image-win \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
WINDOWS_YEARS=${{ matrix.year }} \
BUILDX_ACTION=--push
else
make retina-image-win \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
WINDOWS_YEARS=${{ matrix.year }}
fi
Expand Down Expand Up @@ -138,6 +144,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Az CLI login
uses: azure/login@v2
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
Expand All @@ -154,14 +163,14 @@ jobs:
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
az acr login -n ${{ vars.ACR_NAME }}
make retina-operator-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
BUILDX_ACTION=--push
else
make retina-operator-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
fi
env:
Expand All @@ -188,6 +197,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Az CLI login
uses: azure/login@v2
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
Expand All @@ -204,13 +216,13 @@ jobs:
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
az acr login -n ${{ vars.ACR_NAME }}
make retina-shell-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
BUILDX_ACTION=--push
else
make retina-shell-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
fi
env:
Expand All @@ -237,6 +249,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Az CLI login
uses: azure/login@v2
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
Expand All @@ -253,13 +268,13 @@ jobs:
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
az acr login -n ${{ vars.ACR_NAME }}
make kubectl-retina-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
BUILDX_ACTION=--push
else
make kubectl-retina-image \
IMAGE_NAMESPACE=${{ github.repository }} \
IMAGE_NAMESPACE=${{ env.REPO }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
fi
env:
Expand Down Expand Up @@ -311,6 +326,10 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand All @@ -335,7 +354,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
go test -v ./test/e2e/. -timeout 60m -tags=e2e -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ github.repository}}
go test -v ./test/e2e/. -timeout 60m -tags=e2e -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ env.REPO }}

perf-test-basic:
if: ${{ github.event_name == 'merge_group'}}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/kapinger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}


- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Build Windows Kapinger Image
uses: docker/build-push-action@v6
with:
Expand All @@ -37,7 +41,7 @@ jobs:
platforms: windows/amd64
push: false
provenance: false
tags: ghcr.io/${{ github.repository }}/kapinger:${{ steps.vars.outputs.sha_short }}-windows
tags: ghcr.io/${{ env.REPO }}/kapinger:${{ steps.vars.outputs.sha_short }}-windows

- name: Build Linux Kapinger Image
uses: docker/build-push-action@v6
Expand All @@ -47,7 +51,7 @@ jobs:
platforms: linux/amd64
push: false
provenance: false
tags: ghcr.io/${{ github.repository }}/kapinger:${{ steps.vars.outputs.sha_short }}-linux
tags: ghcr.io/${{ env.REPO }}/kapinger:${{ steps.vars.outputs.sha_short }}-linux

- name: Build Linux Toolbox Image
uses: docker/build-push-action@v6
Expand All @@ -57,7 +61,7 @@ jobs:
platforms: linux/amd64
push: false
provenance: false
tags: ghcr.io/${{ github.repository }}/toolbox:${{ steps.vars.outputs.sha_short }}-linux
tags: ghcr.io/${{ env.REPO }}/toolbox:${{ steps.vars.outputs.sha_short }}-linux
# - name: Create and push manifest
# id: docker_manifest
# run: |
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/perf-schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ permissions:
id-token: write

jobs:
steps:
- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
perf-test-basic:
uses: ./.github/workflows/perf-template.yaml
with:
image-registry: ghcr.io
tag: $(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
image-namespace: ${{ github.repository }}
tag: $(curl -s https://api.github.com/repos/${{ env.REPO }}/releases/latest | jq -r .tag_name)
image-namespace: ${{ env.REPO }}
retina-mode: basic
azure-location: ${{ vars.AZURE_LOCATION }}
secrets:
Expand All @@ -28,8 +31,8 @@ jobs:
uses: ./.github/workflows/perf-template.yaml
with:
image-registry: ghcr.io
tag: $(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
image-namespace: ${{ github.repository }}
tag: $(curl -s https://api.github.com/repos/${{ env.REPO }}/releases/latest | jq -r .tag_name)
image-namespace: ${{ env.REPO }}
retina-mode: advanced
azure-location: ${{ vars.AZURE_LOCATION }}
secrets:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
steps:

- name: Set lowercase repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand All @@ -42,9 +45,9 @@ jobs:
export TAG=$(make version)
helm package ./deploy/standard/manifests/controller/helm/retina --version $TAG
# Get Helm chart's SHA digest from helm push cmd output
helm push retina-$TAG.tgz oci://ghcr.io/${{ github.repository }}/charts >> helm_push_result.txt 2>&1
helm push retina-$TAG.tgz oci://ghcr.io/${{ env.REPO }}/charts >> helm_push_result.txt 2>&1
cat helm_push_result.txt
cosign sign --yes ghcr.io/${{ github.repository }}/charts/retina@$(tail -n 1 helm_push_result.txt | awk '{ print $2 }')
cosign sign --yes ghcr.io/${{ env.REPO }}/charts/retina@$(tail -n 1 helm_push_result.txt | awk '{ print $2 }')

- name: Build, Push and Sign Hubble chart
id: build_hubble_chart
Expand All @@ -54,6 +57,6 @@ jobs:
export TAG=$(make version)
helm package ./deploy/hubble/manifests/controller/helm/retina --version $TAG
# Get Helm chart's SHA digest from helm push cmd output
helm push retina-hubble-$TAG.tgz oci://ghcr.io/${{ github.repository }}/charts >> helm_push_hubble.txt 2>&1
helm push retina-hubble-$TAG.tgz oci://ghcr.io/${{ env.REPO }}/charts >> helm_push_hubble.txt 2>&1
cat helm_push_hubble.txt
cosign sign --yes ghcr.io/${{ github.repository }}/charts/retina-hubble@$(tail -n 1 helm_push_hubble.txt | awk '{ print $2 }')
cosign sign --yes ghcr.io/${{ env.REPO }}/charts/retina-hubble@$(tail -n 1 helm_push_hubble.txt | awk '{ print $2 }')
Loading
Loading