This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Bump the npm_and_yarn group across 2 directories with 6 updates #323
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Knight-Light Go Server | |
on: [push, workflow_dispatch] | |
jobs: | |
code-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go 1.22.1 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.1' | |
- name: Build with Go | |
run: | | |
cd go-server | |
go mod tidy | |
go build | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.1' | |
- run: | | |
cd go-server | |
go test ./... -v -short | |
workflow_engine: | |
runs-on: ubuntu-latest | |
name: Run Workflow Engine | |
outputs: | |
full_image_tag: ${{ steps.vars.outputs.full_image_tag }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: vars | |
run: | | |
echo full_image_tag="ttl.sh/$(cat /proc/sys/kernel/random/uuid):30m" >> $GITHUB_OUTPUT | |
echo full_bundle_tag="ttl.sh/$(cat /proc/sys/kernel/random/uuid):30m" >> $GITHUB_OUTPUT | |
- name: Run Workflow Engine | |
uses: cms-enterprise/batcave-workflow-engine-action/image-build-scan-publish/docker@main | |
with: | |
build_dir: "go-server" | |
dockerfile: "go-server/Dockerfile" | |
tag: ${{ steps.vars.outputs.full_image_tag }} | |
bundle_publish_tag: ${{ steps.vars.outputs.full_bundle_tag }} | |
deploy_impl: | |
runs-on: ubuntu-latest | |
needs: workflow_engine | |
steps: | |
- name: Clone Manifest | |
uses: actions/checkout@v4 | |
with: | |
repository: CMS-Enterprise/batcave-knight-light-manifest | |
ssh-key: ${{ secrets.MANIFEST_DEPLOY_TOKEN }} | |
- uses: gatecheckdev/deploykit-action/kustomize@main | |
with: | |
image: ${{ needs.workflow_engine.outputs.full_image_tag }} | |
directory: "." | |
service: "knight-light-server-go" | |
service_directory: "impl" | |
manifest_deploy_token: ${{ secrets.MANIFEST_DEPLOY_TOKEN }} |