Skip to content

Release Kratix

Release Kratix #8

Workflow file for this run

name: Release Kratix
on:
workflow_run:
workflows: [Test Kratix]
types: [completed]
branches: [main]
jobs:
build-and-push-kratix-platform:
runs-on: ubuntu-latest
steps:
- name: Check out kratix
uses: actions/checkout@v4
- name: Docker login to GHCR
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Kratix Platform
run: |
make docker-build-and-push
build-and-push-pipeline-adapter:
runs-on: ubuntu-latest
steps:
- name: Check out kratix
uses: actions/checkout@v4
- name: Docker login to GHCR
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Pipeline
run: |
make build-and-push-work-creator
publish-release:
runs-on: ubuntu-latest
steps:
- name: Check out kratix
uses: actions/checkout@v4
id: checkout
- name: Create Kratix Distribution
run: |
./scripts/make-distribution
env:
VERSION: ${{ steps.checkout.outputs.commit }}
- name: Create Helm Release
run: |
./charts/scripts/generate-templates-and-crds ./distribution/kratix.yaml
- name: Create Github Release
run: |
gh config set prompt disabled
gh release delete <<pipeline.git.tag>> || true
gh release create <<pipeline.git.tag>> --title <<pipeline.git.tag>> ./distribution/**/*.yaml ./distribution/*.yaml
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}