Skip to content

Commit 39ed254

Browse files
authored
fix: license headers (#1406)
* fix: license headers Signed-off-by: Oleksii Orel <[email protected]>
1 parent 0909c1c commit 39ed254

File tree

1,153 files changed

+1244
-1167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,153 files changed

+1244
-1167
lines changed

.config/copyright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2024 Red Hat, Inc.
2+
* Copyright (c) 2018-2025 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/

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2024 Red Hat, Inc.
2+
* Copyright (c) 2018-2025 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/

.github/workflows/pr.yml

Lines changed: 91 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ jobs:
100100
include:
101101
- platform: linux/arm64
102102
default: false
103-
- platform: linux/s390x
104-
default: true
105-
- platform: linux/ppc64le
106-
default: true
107103
steps:
108104
-
109105
name: "Checkout Che Dashboard source code"
@@ -132,15 +128,6 @@ jobs:
132128
registry: quay.io
133129
username: ${{ secrets.QUAY_USERNAME }}
134130
password: ${{ secrets.QUAY_PASSWORD }}
135-
136-
-
137-
name: "Set platform tag"
138-
id: platform_tag
139-
run: |
140-
PLATFORM=${{ matrix.platform }}
141-
ARCH=${PLATFORM#linux/}
142-
echo "IMAGE_TAG=${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }}-${ARCH}" >> $GITHUB_ENV
143-
144131
-
145132
name: "Build and push ${{ matrix.platform }}"
146133
uses: docker/build-push-action@v5
@@ -152,15 +139,15 @@ jobs:
152139
platforms: ${{ matrix.platform }}
153140
push: ${{ matrix.default == true }}
154141
provenance: false
155-
tags: ${{ env.IMAGE_TAG }}
142+
tags: ${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }}
156143
-
157144
name: "Comment with image name"
158145
uses: actions/github-script@v7
159146
if: ${{ matrix.default == true }}
160147
with:
161148
script: |
162149
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
163-
const dashboardImage = "${{ env.IMAGE_TAG }}";
150+
const dashboardImage = "${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }}";
164151
const patchCommand = `kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{\"op\": \"replace\", \"path\": \"/spec/components/dashboard/deployment\", \"value\": {containers: [{image: \"${dashboardImage}\", name: che-dashboard}]}}]"`;
165152
const text = `
166153
Docker image build succeeded: **${dashboardImage}**
@@ -174,3 +161,92 @@ jobs:
174161
</details>
175162
`;
176163
github.rest.issues.createComment({ issue_number, owner, repo, body: text });
164+
#########################################################################################################
165+
# Multi-arch Docker build, please uncomment if you need images for arm64, s390x, ppc64le.
166+
#########################################################################################################
167+
# docker-build:
168+
# needs: build-and-test
169+
# runs-on: ubuntu-22.04
170+
# continue-on-error: ${{ matrix.default == false }}
171+
# strategy:
172+
# fail-fast: false
173+
# matrix:
174+
# platform: [linux/amd64]
175+
# default: [true]
176+
# include:
177+
# - platform: linux/arm64
178+
# default: false
179+
# - platform: linux/s390x
180+
# default: true
181+
# - platform: linux/ppc64le
182+
# default: true
183+
# steps:
184+
# -
185+
# name: "Checkout Che Dashboard source code"
186+
# uses: actions/checkout@v4
187+
# with:
188+
# path: ${{ env.DIR_DASHBOARD }}
189+
# ref: ${{ github.event.pull_request.head.sha }}
190+
# -
191+
# name: "Set up QEMU"
192+
# uses: docker/setup-qemu-action@v3
193+
# -
194+
# name: "Set up Docker Buildx ${{ matrix.platform }}"
195+
# uses: docker/setup-buildx-action@v3
196+
# -
197+
# name: "Cache Docker layers"
198+
# uses: actions/cache@v4
199+
# with:
200+
# path: /tmp/.buildx-cache
201+
# key: ${{ runner.os }}-buildx-${{ github.sha }}
202+
# restore-keys: |
203+
# ${{ runner.os }}-buildx-
204+
# -
205+
# name: "Docker quay.io Login"
206+
# uses: docker/login-action@v3
207+
# with:
208+
# registry: quay.io
209+
# username: ${{ secrets.QUAY_USERNAME }}
210+
# password: ${{ secrets.QUAY_PASSWORD }}
211+
#
212+
# -
213+
# name: "Set platform tag"
214+
# id: platform_tag
215+
# run: |
216+
# PLATFORM=${{ matrix.platform }}
217+
# ARCH=${PLATFORM#linux/}
218+
# echo "IMAGE_TAG=${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }}-${ARCH}" >> $GITHUB_ENV
219+
#
220+
# -
221+
# name: "Build and push ${{ matrix.platform }}"
222+
# uses: docker/build-push-action@v5
223+
# with:
224+
# cache-from: type=local,src=/tmp/.buildx-cache
225+
# cache-to: type=local,dest=/tmp/.buildx-cache
226+
# context: ./${{ env.DIR_DASHBOARD }}
227+
# file: ./${{ env.DIR_DASHBOARD }}/build/dockerfiles/Dockerfile
228+
# platforms: ${{ matrix.platform }}
229+
# push: ${{ matrix.default == true }}
230+
# provenance: false
231+
# tags: ${{ env.IMAGE_TAG }}
232+
# -
233+
# name: "Comment with image name"
234+
# uses: actions/github-script@v7
235+
# if: ${{ matrix.default == true }}
236+
# with:
237+
# script: |
238+
# const { issue: { number: issue_number }, repo: { owner, repo } } = context;
239+
# const dashboardImage = "${{ env.IMAGE_TAG }}";
240+
# const patchCommand = `kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{\"op\": \"replace\", \"path\": \"/spec/components/dashboard/deployment\", \"value\": {containers: [{image: \"${dashboardImage}\", name: che-dashboard}]}}]"`;
241+
# const text = `
242+
# Docker image build succeeded: **${dashboardImage}**
243+
# <details>
244+
# <summary>kubectl patch command</summary>
245+
#
246+
# \`\`\`bash
247+
# ${patchCommand}
248+
# \`\`\`
249+
#
250+
# </details>
251+
# `;
252+
# github.rest.issues.createComment({ issue_number, owner, repo, body: text });

build/dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024 Red Hat, Inc.
1+
# Copyright (c) 2018-2025 Red Hat, Inc.
22
# This program and the accompanying materials are made
33
# available under the terms of the Eclipse Public License 2.0
44
# which is available at https://www.eclipse.org/legal/epl-2.0/

build/dockerfiles/brew.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024 Red Hat, Inc.
1+
# Copyright (c) 2018-2025 Red Hat, Inc.
22
# This program and the accompanying materials are made
33
# available under the terms of the Eclipse Public License 2.0
44
# which is available at https://www.eclipse.org/legal/epl-2.0/

build/dockerfiles/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2021-2024 Red Hat, Inc.
3+
# Copyright (c) 2018-2025 Red Hat, Inc.
44
# This program and the accompanying materials are made
55
# available under the terms of the Eclipse Public License 2.0
66
# which is available at https://www.eclipse.org/legal/epl-2.0/

build/dockerfiles/rhel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024 Red Hat, Inc.
1+
# Copyright (c) 2018-2025 Red Hat, Inc.
22
# This program and the accompanying materials are made
33
# available under the terms of the Eclipse Public License 2.0
44
# which is available at https://www.eclipse.org/legal/epl-2.0/

build/dockerfiles/rhel.entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2021-2024 Red Hat, Inc.
3+
# Copyright (c) 2018-2025 Red Hat, Inc.
44
# This program and the accompanying materials are made
55
# available under the terms of the Eclipse Public License 2.0
66
# which is available at https://www.eclipse.org/legal/epl-2.0/

build/dockerfiles/skaffold.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024 Red Hat, Inc.
1+
# Copyright (c) 2018-2025 Red Hat, Inc.
22
# This program and the accompanying materials are made
33
# available under the terms of the Eclipse Public License 2.0
44
# which is available at https://www.eclipse.org/legal/epl-2.0/

jest.config.base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2024 Red Hat, Inc.
2+
* Copyright (c) 2018-2025 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/

0 commit comments

Comments
 (0)