Docker Image -- Operator #14
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 Image -- Operator | |
on: | |
workflow_dispatch: | |
inputs: | |
image_tag: | |
description: 'Operator image tag' | |
required: true | |
default: 'latest' | |
env: | |
AISOPERATOR_IMAGE: 'aistorage/ais-operator' | |
AISINIT_IMAGE: 'aistorage/ais-init' | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.x' | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: aisoperator image | |
run: | | |
pushd $GITHUB_WORKSPACE/operator | |
IMG="${{ env.AISOPERATOR_IMAGE }}:${{ inputs.image_tag }}" make docker-build docker-push | |
popd | |
- name: ais-init image | |
run: | | |
pushd $GITHUB_WORKSPACE/operator | |
INIT_IMG="${{ env.AISINIT_IMAGE }}:${{ inputs.image_tag }}" make docker-build-aisinit docker-push-aisinit | |
popd |