tools/gendocs: add dynamic multi-directory qparam scanning; implement… #471
This file contains hidden or 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: Container Images | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
build_util_image: | |
description: 'Build ais-util image (aistorage/ais-util)' | |
required: true | |
type: boolean | |
default: false | |
build_aisnode_image: | |
description: 'Build aisnode image (aistorage/aisnode)' | |
required: true | |
type: boolean | |
default: false | |
build_aisinit_image: | |
description: 'Build aisinit image (aistorage/ais-init)' | |
required: true | |
type: boolean | |
default: false | |
build_cluster_minimal_image: | |
description: 'Build cluster-minimal image (aistorage/cluster-minimal)' | |
required: true | |
type: boolean | |
default: false | |
build_authn_image: | |
description: 'Build AuthN (aistorage/authn)' | |
required: true | |
type: boolean | |
default: false | |
build_gitlab_ci_image: | |
description: 'Build GitLab CI image (aistorage/gitlab-ci)' | |
required: true | |
type: boolean | |
default: false | |
image_tag: | |
description: 'Tag of all the selected images' | |
required: true | |
default: 'latest' | |
env: | |
UTIL_IMAGE: 'aistorage/ais-util' | |
AISNODE_IMAGE: 'aistorage/aisnode' | |
AISINIT_IMAGE: 'aistorage/ais-init' | |
CLUSTER_MINIMAL_IMAGE: 'aistorage/cluster-minimal' | |
CI_IMAGE: 'aistorage/gitlab-ci' | |
AUTHN_IMAGE: 'aistorage/authn' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push `ais-util` image | |
if: ${{ inputs.build_util_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisutil_container | |
IMAGE_REPO="${{ env.UTIL_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: Build and push `aisnode` image | |
if: ${{ inputs.build_aisnode_image || github.event_name == 'push' }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisnode_container | |
IMAGE_REPO="${{ env.AISNODE_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag || 'latest' }}" make -e all | |
popd | |
- name: Build and push `ais-init` image | |
if: ${{ inputs.build_aisinit_image || github.event_name == 'push' }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisinit_container | |
IMAGE_REPO="${{ env.AISINIT_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag || 'latest' }}" make -e all | |
popd | |
- name: Build and push `aisnode` image with tracing support | |
if: ${{ inputs.build_aisnode_image || github.event_name == 'push' }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisnode_container | |
IMAGE_REPO="${{ env.AISNODE_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag || 'latest' }}-oteltracing" BUILD_TAGS="oteltracing" make -e all | |
popd | |
- name: Build and push `cluster-minimal` image | |
if: ${{ inputs.build_cluster_minimal_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/docker/single | |
IMAGE_REPO="${{ env.CLUSTER_MINIMAL_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: Build and push `authn` image | |
if: ${{ inputs.build_authn_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/authn_container | |
IMAGE_REPO="${{ env.AUTHN_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make all | |
popd | |
- name: Build and push `gitlab-ci` image | |
if: ${{inputs.build_gitlab_ci_image}} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/ci | |
CI_IMAGE="${{ env.CI_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd |