Container Images #64
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: Docker Images | |
on: | |
workflow_dispatch: | |
inputs: | |
build_admin_image: | |
description: 'Build admin image (aistorage/admin)' | |
required: true | |
type: boolean | |
default: true | |
build_aisnode_image: | |
description: 'Build aisnode image (aistorage/aisnode)' | |
required: true | |
type: boolean | |
default: true | |
build_cluster_minimal_image: | |
description: 'Build cluster-minimal image (aistorage/cluster-minimal)' | |
required: true | |
type: boolean | |
default: true | |
build_gitlab_ci_image: | |
description: 'Build GitLab CI image (aistorage/ci)' | |
required: true | |
type: boolean | |
default: true | |
build_aisnode_minikube_image: | |
description: 'Build aisnode-minikube image (aistorage/aisnode-minikube)' | |
required: true | |
type: boolean | |
default: true | |
build_ais_init_image: | |
description: 'Build ais-init image (aistorage/ais-init)' | |
required: true | |
type: boolean | |
default: true | |
image_tag: | |
description: 'Tag of all the selected images' | |
required: true | |
default: 'latest' | |
env: | |
ADMIN_IMAGE: 'aistorage/admin' | |
AISNODE_IMAGE: 'aistorage/aisnode' | |
AISINIT_IMAGE: 'aistorage/ais-init' | |
CLUSTER_MINIMAL_IMAGE: 'aistorage/cluster-minimal' | |
CI_IMAGE: 'aistorage/ci' | |
AISNODE_MINIKUBE_IMAGE: 'aistorage/aisnode-minikube' | |
HDFS_CI_IMAGE: 'aistorage/hdfs-ci' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: aisadmin image | |
if: ${{ inputs.build_admin_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisadmin_container | |
IMAGE_REPO="${{ env.ADMIN_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: aisnode image | |
if: ${{ inputs.build_aisnode_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/aisnode_container | |
IMAGE_REPO="${{ env.AISNODE_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: ais-init image | |
if: ${{ inputs.build_ais_init_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/prod/k8s/init_container | |
IMAGE_REPO="${{ env.AISINIT_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: 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: ci image | |
if: ${{ inputs.build_gitlab_ci_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/ci | |
CI_IMAGE="${{ env.CI_IMAGE }}" HDFS_CI_IMAGE=${{ env.HDFS_CI_IMAGE }} IMAGE_TAG="${{ inputs.image_tag }}" make -e all | |
popd | |
- name: aisnode-minikube image | |
if: ${{ inputs.build_aisnode_minikube_image }} | |
run: | | |
pushd $GITHUB_WORKSPACE/deploy/dev/k8s | |
IMAGE_REPO="${{ env.AISNODE_MINIKUBE_IMAGE }}" IMAGE_TAG="${{ inputs.image_tag }}" make -e docker-all | |
popd |