Skip to content

Commit dc015f2

Browse files
committed
fix GH actions
Signed-off-by: Valeriy Svydenko <[email protected]>
1 parent 84ebc64 commit dc015f2

4 files changed

+9
-303
lines changed

.github/workflows/plugin-registry-build-publish-content-gh-pages.yaml

-152
This file was deleted.

.github/workflows/plugin-registry-build.yaml

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020-2021 Red Hat, Inc.
2+
# Copyright (c) 2020-2024 Red Hat, Inc.
33
# This program and the accompanying materials are made
44
# available under the terms of the Eclipse Public License 2.0
55
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -30,7 +30,7 @@ jobs:
3030

3131
- uses: actions/setup-node@v1
3232
with:
33-
node-version: '16'
33+
node-version: '18'
3434

3535
- name: Login to the Red Hat Registry
3636
uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0 #v1
@@ -39,19 +39,6 @@ jobs:
3939
username: ${{ secrets.REGISTRY_REDHAT_IO_USERNAME }}
4040
password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
4141

42-
- name: Get yarn cache directory path
43-
id: yarn-cache-dir-path
44-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
45-
46-
- uses: actions/cache@v2
47-
name: Cache yarn dependencies
48-
id: yarn-cache
49-
with:
50-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
51-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
52-
restore-keys: |
53-
${{ runner.os }}-yarn-
54-
5542
- name: image-build
5643
run: |
5744
BUILDER=docker SKIP_FORMAT=true SKIP_LINT=true SKIP_TEST=true ./build.sh --tag next-gh-action --offline

.github/workflows/plugin-registry-pr-check-build-publish-content.yaml

-84
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020-2022 Red Hat, Inc.
2+
# Copyright (c) 2020-2024 Red Hat, Inc.
33
# This program and the accompanying materials are made
44
# available under the terms of the Eclipse Public License 2.0
55
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -27,67 +27,22 @@ jobs:
2727
fetch-depth: 0
2828
- uses: actions/setup-node@v1
2929
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'
5031

5132
- name: Login to the Red Hat Registry
52-
uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0 #v1
33+
uses: azure/docker-login@83efeb77770c98b620c73055fbb59b2847e17dc0
5334
with:
5435
login-server: registry.redhat.io
5536
username: ${{ secrets.REGISTRY_REDHAT_IO_USERNAME }}
5637
password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
5738

39+
- name: Get yarn cache directory path
40+
id: yarn-cache-dir-path
41+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
42+
5843
- name: image-build
5944
run: |
6045
export SKIP_FORMAT=true
6146
export SKIP_LINT=true
6247
export SKIP_TEST=true
6348
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

Comments
 (0)