Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build-apiserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Publish Docker Image

on:
push:
release:
types: ["published"]

jobs:
validate-kustomize:
uses: datum-cloud/actions/.github/workflows/validate-kustomize.yaml@v1.7.2

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.7.2
with:
image-name: activity
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.7.2
with:
bundle-name: ghcr.io/datum-cloud/activity-kustomize
bundle-path: config
image-overlays: config/base
image-name: ghcr.io/datum-cloud/activity
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Execute Golang Tests"
on:
push:

jobs:
execute-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install dependencies
run: go mod download
- name: Execute golang tests
run: go test -timeout 5m ./...
Loading