This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
feat: bump busola images #104
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Kyma Dashboard Prod Images | |
on: | |
pull_request_target: | |
types: [opened, edited, synchronize, reopened, ready_for_review] | |
paths: | |
- ".github/workflows/kyma-dashboard-prod-build.yml" | |
- "Dockerfile.*" | |
- "package.json" | |
- "environments/prod/**" | |
- "extensions/**" | |
- "gulpfile.js" | |
- "Makefile" | |
- "tests/cypress-smoke.json" | |
- "tests/tests/**/test-check-extensions.spec.js" | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/kyma-dashboard-prod-build.yml" | |
- "Dockerfile.*" | |
- "package.json" | |
- "environments/prod/**" | |
- "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-prod: | |
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/prod/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-prod: | |
needs: [ load-env-prod ] | |
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-prod # This image name is used to build the URL to the registry | |
dockerfile: Dockerfile.web | |
context: . | |
export-tags: true | |
tags: latest | |
build-args: | | |
ENV=prod | |
WEB_IMAGE=${{ needs.load-env-prod.outputs.WEB_IMAGE }} | |
build-backend-prod: | |
needs: [ load-env-prod ] | |
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-prod # This image name is used to build the URL to the registry | |
dockerfile: Dockerfile.backend | |
context: . | |
export-tags: true | |
tags: latest | |
build-args: | | |
ENV=prod | |
BACKEND_IMAGE=${{ needs.load-env-prod.outputs.BACKEND_IMAGE }} | |
build-local-prod: | |
needs: [ load-env-prod ] | |
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-prod # This image name is used to build the URL to the registry | |
dockerfile: Dockerfile.local | |
context: . | |
export-tags: true | |
tags: latest | |
build-args: | | |
ENV=prod | |
LOCAL_IMAGE=${{ needs.load-env-prod.outputs.LOCAL_IMAGE }} | |
test-images-prod: | |
runs-on: ubuntu-latest | |
needs: [ build-web-prod, build-backend-prod, build-local-prod ] | |
steps: | |
- name: Test web image | |
run: echo "Testing web images ${{ needs.build-web-prod.outputs.images }}" | |
- name: Test backend image | |
run: echo "Testing backend images ${{ needs.build-backend-prod.outputs.images }}" | |
- name: Test local image | |
run: echo "Testing local images ${{ needs.build-local-prod.outputs.images }}" |