fix: add OPERATOR_VERSION as build-arg to pass the version to operator

This commit is contained in:
kurokobo
2022-03-09 22:32:38 +09:00
parent 4c9d028a35
commit 80947e2b32

View File

@@ -83,7 +83,8 @@ jobs:
- name: Build and stage awx-operator - name: Build and stage awx-operator
working-directory: awx-operator working-directory: awx-operator
run: | run: |
BUILD_ARGS="--build-arg DEFAULT_AWX_VERSION=${{ github.event.inputs.version }}" \ BUILD_ARGS="--build-arg DEFAULT_AWX_VERSION=${{ github.event.inputs.version }} \
--build-arg OPERATOR_VERSION=${{ github.event.inputs.operator_version }}" \
IMAGE_TAG_BASE=ghcr.io/${{ github.repository_owner }}/awx-operator \ IMAGE_TAG_BASE=ghcr.io/${{ github.repository_owner }}/awx-operator \
VERSION=${{ github.event.inputs.operator_version }} make docker-build docker-push VERSION=${{ github.event.inputs.operator_version }} make docker-build docker-push