|
1 | 1 | #
|
2 |
| -# Copyright (c) 2020-2022 Red Hat, Inc. |
| 2 | +# Copyright (c) 2020-2024 Red Hat, Inc. |
3 | 3 | # This program and the accompanying materials are made
|
4 | 4 | # available under the terms of the Eclipse Public License 2.0
|
5 | 5 | # which is available at https://www.eclipse.org/legal/epl-2.0/
|
@@ -27,67 +27,22 @@ jobs:
|
27 | 27 | fetch-depth: 0
|
28 | 28 | - uses: actions/setup-node@v1
|
29 | 29 | with:
|
30 |
| - node-version: '16' |
31 |
| - - name: Get yarn cache directory path |
32 |
| - id: yarn-cache-dir-path |
33 |
| - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT |
34 |
| - |
35 |
| - - uses: actions/cache@v2 |
36 |
| - name: Cache yarn dependencies |
37 |
| - id: yarn-cache |
38 |
| - with: |
39 |
| - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
40 |
| - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
41 |
| - restore-keys: | |
42 |
| - ${{ runner.os }}-yarn- |
43 |
| -
|
44 |
| - - name: Login to Quay.io |
45 |
| - uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0 #v1 |
46 |
| - with: |
47 |
| - login-server: quay.io |
48 |
| - username: ${{ secrets.DS_QUAY_USERNAME }} |
49 |
| - password: ${{ secrets.DS_QUAY_PASSWORD }} |
| 30 | + node-version: '18' |
50 | 31 |
|
51 | 32 | - name: Login to the Red Hat Registry
|
52 |
| - uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0 #v1 |
| 33 | + uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0 |
53 | 34 | with:
|
54 | 35 | login-server: registry.redhat.io
|
55 | 36 | username: ${{ secrets.REGISTRY_REDHAT_IO_USERNAME }}
|
56 | 37 | password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
|
57 | 38 |
|
| 39 | + - name: Get yarn cache directory path |
| 40 | + id: yarn-cache-dir-path |
| 41 | + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT |
| 42 | + |
58 | 43 | - name: image-build
|
59 | 44 | run: |
|
60 | 45 | export SKIP_FORMAT=true
|
61 | 46 | export SKIP_LINT=true
|
62 | 47 | export SKIP_TEST=true
|
63 | 48 | BUILDER=docker ./build.sh --tag pr-check --offline
|
64 |
| - EXPORTED_FOLDER=/var/www/html/v3 |
65 |
| - ls -la output/ |
66 |
| - docker run --rm --entrypoint=sh quay.io/devspaces/pluginregistry-rhel8:pr-check -c "ls -la ${EXPORTED_FOLDER}" |
67 |
| - docker create --name pluginRegistry quay.io/devspaces/pluginregistry-rhel8:pr-check sh |
68 |
| - mkdir root-dir |
69 |
| - docker cp pluginRegistry:${EXPORTED_FOLDER} root-dir/v3 |
70 |
| - docker rm -f pluginRegistry |
71 |
| - cp root-dir/v3/plugins/index.json root-dir/index.json |
72 |
| - tar zcvf content-devspaces.tgz -C root-dir . |
73 |
| - - uses: actions/upload-artifact@v2 |
74 |
| - with: |
75 |
| - name: plugin-registry-content-devspaces |
76 |
| - path: dependencies/che-plugin-registry/content-devspaces.tgz |
77 |
| - pull-request-info: |
78 |
| - if: ${{ github.event_name == 'pull_request' }} |
79 |
| - runs-on: ubuntu-20.04 |
80 |
| - needs: [image-build] |
81 |
| - steps: |
82 |
| - - name: Store PR info |
83 |
| - run: | |
84 |
| - echo "${{ github.event.number }}" > PR_NUMBER |
85 |
| - echo "${{ github.event.pull_request.head.sha }}" > PR_SHA |
86 |
| - - uses: actions/upload-artifact@v2 |
87 |
| - with: |
88 |
| - name: pull-request-number |
89 |
| - path: PR_NUMBER |
90 |
| - - uses: actions/upload-artifact@v2 |
91 |
| - with: |
92 |
| - name: pull-request-sha |
93 |
| - path: PR_SHA |
0 commit comments