Skip to content

Commit

Permalink
Add workflow for new base image
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jan 21, 2025
1 parent 5b0c105 commit e921f6a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/base_image_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Base Image Update

on:
workflow_dispatch:
inputs:
base_image:
description: "Image-Tag for cyberdojo/sinatra (short commit SHA - first 7 digits) eg edb2887"
required: true


jobs:
setup:
runs-on: ubuntu-latest
outputs:
base_image: ${{ steps.vars.outputs.base_image }}
kosli_trail: ${{ steps.vars.outputs.kosli_trail }}
steps:
- name: Output the base-image
id: vars
run: |
echo "base_image="cyberdojo/sinatra:${{ inputs.base_image }}" >> ${GITHUB_OUTPUT}
echo "kosli_trail="base-image-update-${{ inputs.base_image }}" >> ${GITHUB_OUTPUT}

trigger:
needs: [setup]
uses: ./.github/workflows/main.yml
with:
BASE_IMAGE: ${{ needs.setup.outputs.base_image }}
KOSLI_TRAIL: ${{ needs.setup.outputs.kosli_trail }}
secrets:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}

6 changes: 2 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ that exist in the kata being forked are *not* copied.
- - - -
## GET alive?
Tests if the service is alive.
Used as a [Kubernetes](https://kubernetes.io/) liveness probe.
The runtime liveness probe to see if the service is alive.
- parameters
* none
- result
Expand All @@ -499,8 +498,7 @@ Used as a [Kubernetes](https://kubernetes.io/) liveness probe.
- - - -
## GET ready?
Tests if the service is ready to handle requests.
Used as a [Kubernetes](https://kubernetes.io/) readiness probe.
The runtime readiness probe to see if the service is ready to handle requests.
- parameters
* none
- result
Expand Down

0 comments on commit e921f6a

Please sign in to comment.