-
Notifications
You must be signed in to change notification settings - Fork 99
48 lines (42 loc) · 1.27 KB
/
plugin-registry-pr-check-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Copyright (c) 2020-2024 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: Plugin Registry - PR check - Build
on:
pull_request:
paths:
- 'dependencies/che-plugin-registry/**'
jobs:
image-build:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: dependencies/che-plugin-registry
steps:
- name: Clone source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '18'
- name: Login to the Red Hat Registry
uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0
with:
login-server: registry.redhat.io
username: ${{ secrets.REGISTRY_REDHAT_IO_USERNAME }}
password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: image-build
run: |
export SKIP_FORMAT=true
export SKIP_LINT=true
export SKIP_TEST=true
BUILDER=docker ./build.sh --tag pr-check --offline