Release #5
Workflow file for this run
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: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
stalker-base-release-type: | |
required: true | |
default: minor | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
description: Base | |
stalker-python-job-base-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Base / Python Jobs | |
stalker-nuclei-job-base-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Base / Nuclei Job | |
cron-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Backend / Cron | |
orchestrator-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Backend / Orchestrator | |
jobs-manager-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Backend / Jobs Manager | |
app-release-type: | |
required: true | |
default: none | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
- none | |
description: Frontend / App | |
permissions: | |
packages: write | |
contents: write | |
jobs: | |
base: | |
name: Base | |
runs-on: ubuntu-latest | |
steps: | |
- name: Base | |
if: inputs.stalker-base-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.stalker-base-release-type}} | |
tag-prefix: stalker-base | |
dockerfile-path: ./packages/Dockerfile.base | |
image-name: ghcr.io/red-kite-solutions/stalker-base | |
backend: | |
name: Backend | |
runs-on: ubuntu-latest | |
needs: ["base"] | |
steps: | |
- name: Cron | |
if: inputs.cron-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.cron-release-type}} | |
tag-prefix: cron | |
dockerfile-path: ./packages/backend/cron/service/Dockerfile | |
image-name: ghcr.io/red-kite-solutions/stalker-cron | |
- name: Orchestrator | |
if: inputs.orchestrator-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.orchestrator-release-type}} | |
tag-prefix: orchstrator | |
dockerfile-path: ./packages/backend/orchstrator/service/Dockerfile | |
image-name: ghcr.io/red-kite-solutions/stalker-orchstrator | |
- name: Jobs Manager | |
if: inputs.jobs-manager-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.orchestrator-release-type}} | |
tag-prefix: jobs-manager | |
dockerfile-path: ./packages/backend/jobs-manager/service/Dockerfile | |
image-name: ghcr.io/red-kite-solutions/stalker-jobs-manager | |
frontend: | |
name: Frontend | |
runs-on: ubuntu-latest | |
needs: ["base"] | |
steps: | |
- name: App | |
if: inputs.app-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.app-release-type}} | |
tag-prefix: stalker-app | |
dockerfile-path: ./packages/frontend/stalker-app/Dockerfile | |
image-name: ghcr.io/red-kite-solutions/stalker-app | |
job-bases: | |
name: Job Bases | |
runs-on: ubuntu-latest | |
needs: ["base"] | |
steps: | |
- name: Nuclei | |
if: inputs.stalker-nuclei-job-base-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.stalker-nuclei-job-base-release-type}} | |
tag-prefix: nuclei-job-base | |
dockerfile-path: ./jobs/job-base-images/python/Dockerfile.nuclei | |
context: ./jobs/job-base-images/python | |
image-name: ghcr.io/red-kite-solutions/stalker-nuclei-job-base | |
- name: Python | |
if: inputs.stalker-python-job-base-release-type != 'none' | |
uses: ./.github/actions/build-tag-push | |
with: | |
release-type: ${{inputs.stalker-python-job-base-release-type}} | |
tag-prefix: python-job-base | |
dockerfile-path: ./jobs/job-base-images/python/Dockerfile | |
context: ./jobs/job-base-images/python | |
image-name: ghcr.io/red-kite-solutions/stalker-python-job-base |