Skip to content

build with manifest #10

build with manifest

build with manifest #10

Workflow file for this run

name: Build core and operator images

Check failure on line 1 in .github/workflows/build-images.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-images.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: env
on:
push:
branches:
- main
- wf-build-image
paths:
# run only on changes of code files
- '**.go'
- '**.java'
- '**/build.gradle'
- '**/Dockerfile'
- '.github/workflows/build-image*.yaml'
jobs:
env:
REGISTRY: docker.io
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
REPOSITORY: kaleidoinc
# REPOSITORY: ${{ github.repository_owner }}
IMAGE_TAG: ${{ github.ref_name }}
core-macos:
uses: ./.github/workflows/build-image-job.yaml
with:
dockerfile: ./Dockerfile
registry: ${{ env.REGISTRY }}
image: ${{ env.REPOSITORY }}/paladin
image_tag: "macos-${{ env.IMAGE_TAG }}"
push: true
platforms: linux/arm64
runs-on: macos-latest
secrets:
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
core-ubuntu:
uses: ./.github/workflows/build-image-job.yaml
with:
dockerfile: ./Dockerfile
registry: ${{ env.REGISTRY }}
image: ${{ env.REPOSITORY }}/paladin
image_tag: "macos-${{ env.IMAGE_TAG }}"
push: true
platforms: linux/amd64
runs-on: ubuntu-latest
secrets:
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
operator:
uses: ./.github/workflows/build-image-job.yaml
with:
dockerfile: ./operator/Dockerfile
registry: ${{ env.REGISTRY }}
image: ${{ env.REPOSITORY }}/paladin-operator
image_tag: ${{ env.IMAGE_TAG }}
push: true
platforms: linux/amd64,linux/arm64
secrets:
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
docker-manifet:
if: ${{ inputs.push && inputs.registry == 'docker.io' }}
runs-on: ubuntu-latest
needs: [core]
steps:
- name: Docker registry login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Docker manifest create
run: |
docker manifest create \
${{ env.REPOSITORY }}/paladin:${{ env.IMAGE_TAG }} \
--amend ${{ env.REPOSITORY }}/paladin:macos-${{ env.IMAGE_TAG }} \
--amend ${{ env.REPOSITORY }}/paladin:ubuntu-${{ env.IMAGE_TAG }}
docker manifest push ${{ env.REPOSITORY }}/paladin:${{ env.IMAGE_TAG }}