Skip to content

Commit

Permalink
ci: fix registry name (#108)
Browse files Browse the repository at this point in the history
- Fix `REGISTRY` environment to carry the value will be set accordingly.
- Add doc and images files to the ignore file to run the pipeline.

---------

Signed-off-by: Heba <31887807+helayoty@users.noreply.github.com>
  • Loading branch information
helayoty authored Mar 18, 2024
1 parent dffdda3 commit f364b49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ concurrency:
on:
push:
branches: [main]
paths-ignore: ['docs/**', '**.md', '**.mdx', '**.png', '**.jpg']
pull_request:
branches: [main]
paths-ignore: ['docs/**', '**.md', '**.mdx', '**.png', '**.jpg']
repository_dispatch:
types: [ release-tag ]
branches: [ release-** ]
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
echo "VERSION=${rand}" >> $GITHUB_ENV
echo "CLUSTER_NAME=gpuprov${rand}" >> $GITHUB_ENV
echo "REGISTRY=kaito${rand}.azurecr.io" >> $GITHUB_ENV
echo "REGISTRY=gpuprov${rand}.azurecr.io" >> $GITHUB_ENV
- name: Set Registry
if: ${{ github.event.client_payload.isRelease }}
Expand Down Expand Up @@ -99,7 +101,7 @@ jobs:
run: |
make docker-build
env:
REGISTRY: ${{ env.CLUSTER_NAME }}.azurecr.io
REGISTRY: ${{ env.REGISTRY }}
VERSION: ${{ env.VERSION }}

- name: Create cluster
Expand All @@ -122,7 +124,7 @@ jobs:
AZURE_RESOURCE_GROUP: ${{ env.CLUSTER_NAME }}
AZURE_ACR_NAME: ${{ env.CLUSTER_NAME }}
AZURE_CLUSTER_NAME: ${{ env.CLUSTER_NAME }}
REGISTRY: ${{ env.CLUSTER_NAME }}.azurecr.io
REGISTRY: ${{ env.REGISTRY }}
VERSION: ${{ env.VERSION }}

- uses: azure/login@v2.0.0
Expand Down

0 comments on commit f364b49

Please sign in to comment.