hackajob-7.26.1: sessionrewind #22
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 | |
# | |
# Che-Theia workflow | |
# matrix jobs with alpine and ubi8 | |
name: CI | |
# Trigger the workflow on push or pull request | |
on: [push, pull_request] | |
jobs: | |
# check EOF newline | |
linelint: | |
runs-on: ubuntu-20.04 | |
name: eof-newline | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Linelint | |
uses: fernandrone/[email protected] | |
id: linelint | |
node-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout che-theia source code | |
- uses: actions/setup-node@v1 | |
name: Configuring nodejs 10.x version | |
with: | |
node-version: '12.x' | |
- name: build | |
run: yarn | |
docker-build: | |
strategy: | |
matrix: | |
dist: [ 'alpine', 'ubi8' ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout che-theia source code | |
- uses: actions/setup-node@v1 | |
name: Configuring nodejs 10.x version | |
with: | |
node-version: '12.x' | |
- name: build | |
run: | | |
docker image prune -a -f | |
docker pull quay.io/eclipse/che-theia-dev:next | |
docker tag quay.io/eclipse/che-theia-dev:next eclipse/che-theia-dev:next | |
./build.sh --root-yarn-opts:--ignore-scripts --dockerfile:Dockerfile.${{matrix.dist}} |