Skip to content

feat: change nginx image, bump busola images (#365) #1

feat: change nginx image, bump busola images (#365)

feat: change nginx image, bump busola images (#365) #1

name: Build Kyma Dashboard Dev Images
on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/kyma-dashboard-dev-build.yml"
- "Dockerfile.*"
- "package.json"
- "environments/dev/**"
- "extensions/**"
- "gulpfile.js"
- "Makefile"
- "tests/**"
push:
branches:
- main
paths:
- ".github/workflows/kyma-dashboard-dev-build.yml"
- "Dockerfile.*"
- "package.json"
- "environments/dev/**"
- "extensions/**"
- "gulpfile.js"
- "Makefile"
- "tests/**"
permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout
jobs:
load-env-dev:
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/dev/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-dev:
needs: [ load-env-dev ]
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-dev # This image name is used to build the URL to the registry
dockerfile: Dockerfile.web.builder
context: .
export-tags: true
tags: latest
build-args: |
ENV=dev
WEB_IMAGE=${{ needs.load-env-dev.outputs.WEB_IMAGE }}
build-backend-dev:
needs: [ load-env-dev ]
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-dev # This image name is used to build the URL to the registry
dockerfile: Dockerfile.backend
context: .
export-tags: true
tags: latest
build-args: |
ENV=dev
BACKEND_IMAGE=${{ needs.load-env-dev.outputs.BACKEND_IMAGE }}
build-local-dev:
needs: [ load-env-dev ]
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-dev # This image name is used to build the URL to the registry
dockerfile: Dockerfile.local.builder
context: .
export-tags: true
tags: latest
build-args: |
ENV=dev
LOCAL_IMAGE=${{ needs.load-env-dev.outputs.LOCAL_IMAGE }}
test-images-dev:
runs-on: ubuntu-latest
needs: [ build-web-dev, build-backend-dev, build-local-dev ]
steps:
- name: Test web image
run: echo "Testing web images ${{ needs.build-web-dev.outputs.images }}"
- name: Test backend image
run: echo "Testing backend images ${{ needs.build-backend-dev.outputs.images }}"
- name: Test local image
run: echo "Testing local images ${{ needs.build-local-dev.outputs.images }}"