Skip to content

Commit

Permalink
fix controller image build
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich committed Feb 28, 2024
1 parent 5cd9fd4 commit ef6d0ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PROVISIONER_IMAGE_NAME: ${{ github.repository }}-provisioner
CONTROLLER_IMAGE_NAME: ${{ github.repository }}-controller

jobs:
lint:
Expand Down Expand Up @@ -74,13 +74,14 @@ jobs:
[ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
- name: Build and push image
- name: Build and push controller image
if: ${{ env.DOCKER_REGISTRY_TOKEN != '' }}
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
tags: ${{ env.REGISTRY }}/${{ env.CONTROLLER_IMAGE_NAME }}:${{ env.tag }}
file: cmd/controller/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7

- name: Build and push provisioner image
Expand Down

0 comments on commit ef6d0ed

Please sign in to comment.