Respect the ScmComunicationException on token validation step (#715) #3795
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) 2020 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-pr-check | |
on: [push, pull_request] | |
env: | |
PR_IMAGE_TAG: pr-${{ github.event.pull_request.number }} | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check all properties have description | |
run: ./check_properties_description.sh | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'maven' | |
- name: Login to docker.io | |
if: github.event_name == 'pull_request' | |
uses: redhat-actions/podman-login@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
registry: docker.io | |
- name: Login to quay.io | |
if: github.event_name == 'pull_request' | |
uses: redhat-actions/podman-login@v1 | |
with: | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
registry: quay.io | |
- name: Build with Maven | |
run: mvn -B clean install -U -Pintegration | |
- name: Build images | |
if: github.event_name == 'pull_request' | |
run: ./build/build.sh --tag:${{ env.PR_IMAGE_TAG }} | |
- name: Push images | |
if: github.event_name == 'pull_request' | |
run: podman push quay.io/eclipse/che-server:${{ env.PR_IMAGE_TAG }} |