Skip to content

Commit ee16b1d

Browse files
authored
Merge pull request #58 from LakshK98/test-protoc
Test protoc
2 parents dfd7c46 + 7f3b00f commit ee16b1d

9 files changed

Lines changed: 85 additions & 42 deletions

File tree

.github/workflows/images.yaml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Set up QEMU
3636
uses: docker/setup-qemu-action@v3
3737

38+
- name: Set lowercase repo name
39+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
40+
3841
- name: Az CLI login
3942
uses: azure/login@v2
4043
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
@@ -51,14 +54,14 @@ jobs:
5154
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
5255
az acr login -n ${{ vars.ACR_NAME }}
5356
make retina-image \
54-
IMAGE_NAMESPACE=${{ github.repository }} \
57+
IMAGE_NAMESPACE=${{ env.REPO }} \
5558
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
5659
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
5760
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
5861
BUILDX_ACTION=--push
5962
else
6063
make retina-image \
61-
IMAGE_NAMESPACE=${{ github.repository }} \
64+
IMAGE_NAMESPACE=${{ env.REPO }} \
6265
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
6366
fi
6467
env:
@@ -86,6 +89,9 @@ jobs:
8689
- name: Set up QEMU
8790
uses: docker/setup-qemu-action@v3
8891

92+
- name: Set lowercase repo name
93+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
94+
8995
- name: Az CLI login
9096
uses: azure/login@v2
9197
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
@@ -102,15 +108,15 @@ jobs:
102108
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
103109
az acr login -n ${{ vars.ACR_NAME }}
104110
make retina-image-win \
105-
IMAGE_NAMESPACE=${{ github.repository }} \
111+
IMAGE_NAMESPACE=${{ env.REPO }} \
106112
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
107113
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
108114
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
109115
WINDOWS_YEARS=${{ matrix.year }} \
110116
BUILDX_ACTION=--push
111117
else
112118
make retina-image-win \
113-
IMAGE_NAMESPACE=${{ github.repository }} \
119+
IMAGE_NAMESPACE=${{ env.REPO }} \
114120
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
115121
WINDOWS_YEARS=${{ matrix.year }}
116122
fi
@@ -138,6 +144,9 @@ jobs:
138144
- name: Set up QEMU
139145
uses: docker/setup-qemu-action@v3
140146

147+
- name: Set lowercase repo name
148+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
149+
141150
- name: Az CLI login
142151
uses: azure/login@v2
143152
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
@@ -154,14 +163,14 @@ jobs:
154163
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
155164
az acr login -n ${{ vars.ACR_NAME }}
156165
make retina-operator-image \
157-
IMAGE_NAMESPACE=${{ github.repository }} \
166+
IMAGE_NAMESPACE=${{ env.REPO }} \
158167
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
159168
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
160169
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
161170
BUILDX_ACTION=--push
162171
else
163172
make retina-operator-image \
164-
IMAGE_NAMESPACE=${{ github.repository }} \
173+
IMAGE_NAMESPACE=${{ env.REPO }} \
165174
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
166175
fi
167176
env:
@@ -188,6 +197,9 @@ jobs:
188197
- name: Set up QEMU
189198
uses: docker/setup-qemu-action@v3
190199

200+
- name: Set lowercase repo name
201+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
202+
191203
- name: Az CLI login
192204
uses: azure/login@v2
193205
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
@@ -204,13 +216,13 @@ jobs:
204216
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
205217
az acr login -n ${{ vars.ACR_NAME }}
206218
make retina-shell-image \
207-
IMAGE_NAMESPACE=${{ github.repository }} \
219+
IMAGE_NAMESPACE=${{ env.REPO }} \
208220
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
209221
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
210222
BUILDX_ACTION=--push
211223
else
212224
make retina-shell-image \
213-
IMAGE_NAMESPACE=${{ github.repository }} \
225+
IMAGE_NAMESPACE=${{ env.REPO }} \
214226
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
215227
fi
216228
env:
@@ -237,6 +249,9 @@ jobs:
237249
- name: Set up QEMU
238250
uses: docker/setup-qemu-action@v3
239251

252+
- name: Set lowercase repo name
253+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
254+
240255
- name: Az CLI login
241256
uses: azure/login@v2
242257
if: ${{ (github.event_name == 'merge_group') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev/v0.0.33-windows' && github.repository == 'microsoft/retina') }}
@@ -253,13 +268,13 @@ jobs:
253268
if [ "$SHOULD_PUSH_IMAGE" == "true" ]; then
254269
az acr login -n ${{ vars.ACR_NAME }}
255270
make kubectl-retina-image \
256-
IMAGE_NAMESPACE=${{ github.repository }} \
271+
IMAGE_NAMESPACE=${{ env.REPO }} \
257272
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
258273
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
259274
BUILDX_ACTION=--push
260275
else
261276
make kubectl-retina-image \
262-
IMAGE_NAMESPACE=${{ github.repository }} \
277+
IMAGE_NAMESPACE=${{ env.REPO }} \
263278
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }}
264279
fi
265280
env:
@@ -311,6 +326,10 @@ jobs:
311326
runs-on: ubuntu-latest
312327

313328
steps:
329+
330+
- name: Set lowercase repo name
331+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
332+
314333
- name: Checkout code
315334
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
316335

@@ -335,7 +354,7 @@ jobs:
335354
shell: bash
336355
run: |
337356
set -euo pipefail
338-
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}}
357+
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 }}
339358
340359
perf-test-basic:
341360
if: ${{ github.event_name == 'merge_group'}}

.github/workflows/kapinger.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
# username: ${{ github.repository_owner }}
3030
# password: ${{ secrets.GITHUB_TOKEN }}
3131

32+
33+
- name: Set lowercase repo name
34+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
35+
3236
- name: Build Windows Kapinger Image
3337
uses: docker/build-push-action@v6
3438
with:
@@ -37,7 +41,7 @@ jobs:
3741
platforms: windows/amd64
3842
push: false
3943
provenance: false
40-
tags: ghcr.io/${{ github.repository }}/kapinger:${{ steps.vars.outputs.sha_short }}-windows
44+
tags: ghcr.io/${{ env.REPO }}/kapinger:${{ steps.vars.outputs.sha_short }}-windows
4145

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

5256
- name: Build Linux Toolbox Image
5357
uses: docker/build-push-action@v6
@@ -57,7 +61,7 @@ jobs:
5761
platforms: linux/amd64
5862
push: false
5963
provenance: false
60-
tags: ghcr.io/${{ github.repository }}/toolbox:${{ steps.vars.outputs.sha_short }}-linux
64+
tags: ghcr.io/${{ env.REPO }}/toolbox:${{ steps.vars.outputs.sha_short }}-linux
6165
# - name: Create and push manifest
6266
# id: docker_manifest
6367
# run: |

.github/workflows/perf-schedule.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ permissions:
1010
id-token: write
1111

1212
jobs:
13+
steps:
14+
- name: Set lowercase repo name
15+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
1316
perf-test-basic:
1417
uses: ./.github/workflows/perf-template.yaml
1518
with:
1619
image-registry: ghcr.io
17-
tag: $(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
18-
image-namespace: ${{ github.repository }}
20+
tag: $(curl -s https://api.github.com/repos/${{ env.REPO }}/releases/latest | jq -r .tag_name)
21+
image-namespace: ${{ env.REPO }}
1922
retina-mode: basic
2023
azure-location: ${{ vars.AZURE_LOCATION }}
2124
secrets:
@@ -28,8 +31,8 @@ jobs:
2831
uses: ./.github/workflows/perf-template.yaml
2932
with:
3033
image-registry: ghcr.io
31-
tag: $(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
32-
image-namespace: ${{ github.repository }}
34+
tag: $(curl -s https://api.github.com/repos/${{ env.REPO }}/releases/latest | jq -r .tag_name)
35+
image-namespace: ${{ env.REPO }}
3336
retina-mode: advanced
3437
azure-location: ${{ vars.AZURE_LOCATION }}
3538
secrets:

.github/workflows/release-charts.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
if: github.ref_type == 'tag'
2020
steps:
21+
22+
- name: Set lowercase repo name
23+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
2124
- name: Checkout code
2225
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2326
with:
@@ -42,9 +45,9 @@ jobs:
4245
export TAG=$(make version)
4346
helm package ./deploy/standard/manifests/controller/helm/retina --version $TAG
4447
# Get Helm chart's SHA digest from helm push cmd output
45-
helm push retina-$TAG.tgz oci://ghcr.io/${{ github.repository }}/charts >> helm_push_result.txt 2>&1
48+
helm push retina-$TAG.tgz oci://ghcr.io/${{ env.REPO }}/charts >> helm_push_result.txt 2>&1
4649
cat helm_push_result.txt
47-
cosign sign --yes ghcr.io/${{ github.repository }}/charts/retina@$(tail -n 1 helm_push_result.txt | awk '{ print $2 }')
50+
cosign sign --yes ghcr.io/${{ env.REPO }}/charts/retina@$(tail -n 1 helm_push_result.txt | awk '{ print $2 }')
4851
4952
- name: Build, Push and Sign Hubble chart
5053
id: build_hubble_chart
@@ -54,6 +57,6 @@ jobs:
5457
export TAG=$(make version)
5558
helm package ./deploy/hubble/manifests/controller/helm/retina --version $TAG
5659
# Get Helm chart's SHA digest from helm push cmd output
57-
helm push retina-hubble-$TAG.tgz oci://ghcr.io/${{ github.repository }}/charts >> helm_push_hubble.txt 2>&1
60+
helm push retina-hubble-$TAG.tgz oci://ghcr.io/${{ env.REPO }}/charts >> helm_push_hubble.txt 2>&1
5861
cat helm_push_hubble.txt
59-
cosign sign --yes ghcr.io/${{ github.repository }}/charts/retina-hubble@$(tail -n 1 helm_push_hubble.txt | awk '{ print $2 }')
62+
cosign sign --yes ghcr.io/${{ env.REPO }}/charts/retina-hubble@$(tail -n 1 helm_push_hubble.txt | awk '{ print $2 }')

0 commit comments

Comments
 (0)