Skip to content

feat: Integrate Python apps #52

feat: Integrate Python apps

feat: Integrate Python apps #52

Workflow file for this run

name: Build all
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build with Bazel
run: bazel build //...
- name: Test Chart
run: bazel test //chart/...
- name: Test Core Image
run: bazel test //core-image/...
- name: Test Onyx
run: bazel test //onyx/...
- name: Test Python apps
continue-on-error: true # currently failing
run: bazel test //yaku-apps-python/...
####
## only on push to main
####
- name: Log in to the Container registry
if: github.event_name == 'push'
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push the core image to the OCI registry
if: github.event_name == 'push'
#run: bazel run --embed_label="${GITHUB_SHA::6}" --stamp //core-image:push-image
run: bazel run //core-image:push-image
- name: Push the chart to the OCI registry
if: github.event_name == 'push'
run: bazel run //chart:yaku_helm.push_registry