chore: Update from ubi8-minimal:8.10-1086 to ubi8-minimal:8.10-1130 #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (c) 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 | |
# | |
name: build-next | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: "Set up QEMU" | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: "Set up Docker Buildx" | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: "Docker quay.io Login" | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- | |
name: Clone source code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- | |
name: Prepare | |
id: prep | |
run: | | |
set -e | |
echo "short_sha1=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
echo "version=next" >> $GITHUB_OUTPUT | |
echo "image=kubernetes-image-puller" >> $GITHUB_OUTPUT | |
- | |
name: "Build and push" | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./build/dockerfiles/Dockerfile | |
tags: quay.io/eclipse/${{ steps.prep.outputs.image }}:${{ steps.prep.outputs.version }},quay.io/eclipse/${{ steps.prep.outputs.image }}:${{ steps.prep.outputs.short_sha1 }} | |
push: true | |
- | |
name: Create failure MM message | |
if: ${{ failure() }} | |
run: | | |
echo "{\"text\":\":no_entry_sign: Kubernetes Image puller build has failed: https://github.com/che-incubator/kubernetes-image-puller/actions/workflows/next-build.yml\"}" > mattermost.json | |
- | |
name: Send MM message | |
if: ${{ failure() }} | |
uses: mattermost/[email protected] | |
env: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
MATTERMOST_CHANNEL: eclipse-che-ci | |
MATTERMOST_USERNAME: che-bot |