Skip to content

Docker Image -- Operator #16

Docker Image -- Operator

Docker Image -- Operator #16

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