forked from redhat-developer/devspaces
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 2.02 KB
/
plugin-registry-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Copyright (c) 2020-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: Plugin Registry - Build
on:
push:
branches:
- devspaces-3-rhel-8
paths:
- 'dependencies/che-plugin-registry/**'
jobs:
next-build-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dependencies/che-plugin-registry
steps:
- name: Clone source code
uses: actions/checkout@v1
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Login to quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.DS_QUAY_USERNAME }}
password: ${{ secrets.DS_QUAY_PASSWORD }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
name: Cache yarn dependencies
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
name: Cache vsix dependencies
id: download-unpacked-cache
with:
path: |
/tmp/che-plugin-registry/download-folder
/tmp/che-plugin-registry/unpack-folder
key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }}
restore-keys: |
download-unpacked-cache-
- name: image-build
run: |
BUILDER=docker SKIP_FORMAT=true SKIP_LINT=true SKIP_TEST=true ./build.sh --tag next-gh-action --offline
- name: push plugin registry image
run: |
docker push quay.io/devspaces/pluginregistry-rhel8:next-gh-action