55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
#
|
|
# Copyright (c) 2019-2021 Red Hat, Inc.
|
|
# This program and the accompanying materials are made
|
|
# available under the terms of the Eclipse Public License 2.0
|
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Red Hat, Inc. - initial API and implementation
|
|
#
|
|
|
|
name: Build catalog and bundle images
|
|
on:
|
|
# manual trigger if required
|
|
workflow_dispatch:
|
|
inputs:
|
|
reason:
|
|
description: 'Reason to trigger a build'
|
|
required: false
|
|
schedule:
|
|
- cron: '0 21 * * *'
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-images:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install yq and pysemver
|
|
run: sudo pip install yq pysemver
|
|
- name: Docker login
|
|
uses: azure/docker-login@v1
|
|
with:
|
|
login-server: quay.io
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
- name: Build and push images to quay.io
|
|
run: |
|
|
${GITHUB_WORKSPACE}/olm/buildCatalog.sh \
|
|
--channel 'next' \
|
|
--platform 'openshift' \
|
|
--catalog-image quay.io/eclipse/eclipse-che-openshift-opm-catalog:next
|
|
|
|
${GITHUB_WORKSPACE}/olm/buildCatalog.sh \
|
|
--channel 'next' \
|
|
--platform 'kubernetes' \
|
|
--catalog-image quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:next
|
|
|
|
${GITHUB_WORKSPACE}/olm/buildCatalog.sh \
|
|
--channel 'next-all-namespaces' \
|
|
--platform 'openshift' \
|
|
--catalog-image quay.io/eclipse/eclipse-che-openshift-opm-catalog:next
|