Skip to content

Merge pull request #75 from datum-cloud/fix/openapi-ssa-compatibility #214

Merge pull request #75 from datum-cloud/fix/openapi-ssa-compatibility

Merge pull request #75 from datum-cloud/fix/openapi-ssa-compatibility #214

# TEMPLATE NOTE: This workflow is specific to datum-cloud organization.
# Update or replace this workflow based on your CI/CD needs.
# Key things to change:
# - image-name: Update to your service name
# - bundle-name: Update to your kustomize bundle name
# - Uses references: Point to your own reusable workflows or use standard actions
name: Build and Publish Docker Image
on:
push:
release:
types: ["published"]
jobs:
validate-kustomize:
uses: datum-cloud/actions/.github/workflows/validate-kustomize.yaml@v1.11.0
publish-container-image:
# No point in trying to build the container image if the deployment
# manifests are invalid.
needs:
- validate-kustomize
permissions:
id-token: write
contents: read
packages: write
attestations: write
uses: datum-cloud/actions/.github/workflows/publish-docker.yaml@v1.11.0
with:
image-name: search
secrets: inherit
publish-kustomize-bundles:
# Ensure the kustomize manifests are valid and the container is published
# before we publish the kustomize manifests. We expect publishing the
# kustomize manifests to result in new deployments going out.
needs:
- validate-kustomize
- publish-container-image
permissions:
id-token: write
contents: read
packages: write
uses: datum-cloud/actions/.github/workflows/publish-kustomize-bundle.yaml@v1.11.0
with:
bundle-name: ghcr.io/datum-cloud/search-kustomize
bundle-path: config
image-overlays: config/overlays/core-control-plane
image-name: ghcr.io/datum-cloud/search
secrets: inherit