Skip to content

feat: Enhance DNS Providers (#375) #2

feat: Enhance DNS Providers (#375)

feat: Enhance DNS Providers (#375) #2

name: Build Kyma Dashboard Stage Images
on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/kyma-dashboard-stage-build.yml"
- "Dockerfile.*"
- "package.json"
- "environments/stage/**"
- "extensions/**"
- "gulpfile.js"
- "Makefile"
- "tests/cypress-smoke.json"
- "tests/tests/**/test-check-extensions.spec.js"
push:
branches:
- main
paths:
- ".github/workflows/kyma-dashboard-stage-build.yml"
- "Dockerfile.*"
- "package.json"
- "environments/stage/**"
- "extensions/**"
- "gulpfile.js"
- "Makefile"
- "tests/cypress-smoke.json"
- "tests/tests/**/test-check-extensions.spec.js"
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
load-env-stage:
runs-on: ubuntu-latest
outputs:
WEB_IMAGE: ${{ steps.get_tags.outputs.WEB_IMAGE }}
BACKEND_IMAGE: ${{ steps.get_tags.outputs.BACKEND_IMAGE }}
LOCAL_IMAGE: ${{ steps.get_tags.outputs.LOCAL_IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load environment variables
id: get_tags
run: |
source ./environments/stage/env.sh
echo "WEB_IMAGE=$WEB_IMAGE" >> $GITHUB_OUTPUT
echo "BACKEND_IMAGE=$BACKEND_IMAGE" >> $GITHUB_OUTPUT
echo "LOCAL_IMAGE=$LOCAL_IMAGE" >> $GITHUB_OUTPUT
build-web-stage:
needs: [ load-env-stage ]
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: kyma-dashboard-web-stage # This image name is used to build the URL to the registry
dockerfile: Dockerfile.web
context: .
export-tags: true
tags: latest
build-args: |
ENV=stage
WEB_IMAGE=${{ needs.load-env-stage.outputs.WEB_IMAGE }}
build-backend-stage:
needs: [ load-env-stage ]
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: kyma-dashboard-backend-stage # This image name is used to build the URL to the registry
dockerfile: Dockerfile.backend
context: .
export-tags: true
tags: latest
build-args: |
ENV=stage
BACKEND_IMAGE=${{ needs.load-env-stage.outputs.BACKEND_IMAGE }}
build-local-stage:
needs: [ load-env-stage ]
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: kyma-dashboard-local-stage # This image name is used to build the URL to the registry
dockerfile: Dockerfile.local
context: .
export-tags: true
tags: latest
build-args: |
ENV=stage
LOCAL_IMAGE=${{ needs.load-env-stage.outputs.LOCAL_IMAGE }}
test-images-stage:
runs-on: ubuntu-latest
needs: [ build-web-stage, build-backend-stage, build-local-stage ]
steps:
- name: Test web image
run: echo "Testing web images ${{ needs.build-web-stage.outputs.images }}"
- name: Test backend image
run: echo "Testing backend images ${{ needs.build-backend-stage.outputs.images }}"
- name: Test local image
run: echo "Testing local images ${{ needs.build-local-stage.outputs.images }}"