-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.51 KB
/
alpine-vscode-startup.yaml
File metadata and controls
46 lines (43 loc) · 1.51 KB
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
name: alpine-vscode-startup
on:
workflow_dispatch:
inputs:
sandboxURL:
description: "Red Hat Developer Sandbox Cluster URL"
required: false
default: "https://api.rm1.0a51.p1.openshiftapps.com:6443"
type: string
sandboxToken:
description: "Red Hat Developer Sandbox Cluster Token"
required: true
type: string
editorImage:
description: "Dev Spaces editor image"
required: false
default: "quay.io/che-incubator/che-code:insiders"
type: string
env:
CLOUD_DEV_IMAGE: quay.io/mloriedo/cloud-dev-images:alpine
EDITOR_IMAGE: ${{ inputs.editorImage }}
CLUSTER_URL: ${{ inputs.sandboxURL }}
jobs:
vscode-startup:
runs-on: ubuntu-latest
steps:
- name: Mask Sandbox Token # https://github.com/actions/runner/issues/643
id: mask-sandbox-token
run: |
token=$(jq -r '.inputs.sandboxToken' $GITHUB_EVENT_PATH)
echo "::add-mask::$token"
echo "cluster-token=$token" >> "$GITHUB_OUTPUT"
- name: Install oc
run: |
wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz
tar -xvf oc.tar.gz
sudo mv oc /usr/local/bin/
- name: Checkout
uses: actions/checkout@v6
- name: Login to Dev Sandbox
run: oc login --token=${{ steps.mask-sandbox-token.outputs.cluster-token }} --server=${{ env.CLUSTER_URL }}
- name: Run Test
run: ${PWD}/__tests__/test-editor-startup-in-image.sh