Actions: Remove CX_VERSION replacement
This commit is contained in:
parent
e9f22048c5
commit
1233d181f8
1 changed files with 1 additions and 8 deletions
|
@ -25,12 +25,6 @@ on:
|
||||||
required: true
|
required: true
|
||||||
default: 'base_image.ext2'
|
default: 'base_image.ext2'
|
||||||
|
|
||||||
CX_VERSION:
|
|
||||||
type: string
|
|
||||||
description: Version of CX to use.
|
|
||||||
required: true
|
|
||||||
default: "20230515_78"
|
|
||||||
|
|
||||||
LOGIN_UID:
|
LOGIN_UID:
|
||||||
type: string
|
type: string
|
||||||
description: 'UID of the starting process.'
|
description: 'UID of the starting process.'
|
||||||
|
@ -122,14 +116,13 @@ jobs:
|
||||||
- run: sudo mv assets examples tun xterm favicon.ico index.html login.html network.js scrollbar.css serviceWorker.js tower.ico $DEPLOY_DIR
|
- run: sudo mv assets examples tun xterm favicon.ico index.html login.html network.js scrollbar.css serviceWorker.js tower.ico $DEPLOY_DIR
|
||||||
|
|
||||||
# This step updates the default index.html file by performing the following actions:
|
# This step updates the default index.html file by performing the following actions:
|
||||||
# 1. Replaces all occurrences of UID, GID, and CX_VERSION with their respective input parameters.
|
# 1. Replaces all occurrences of UID and GID with their respective input parameters.
|
||||||
# 2. Replaces all occurrences of IMAGE_URL with the URL to the image.
|
# 2. Replaces all occurrences of IMAGE_URL with the URL to the image.
|
||||||
# 3. Replaces all occurrences of DEVICE_TYPE to bytes.
|
# 3. Replaces all occurrences of DEVICE_TYPE to bytes.
|
||||||
- name: Adjust index.html
|
- name: Adjust index.html
|
||||||
run: |
|
run: |
|
||||||
sudo sed -i 's#UID#"${{ github.event.inputs.LOGIN_UID }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
sudo sed -i 's#UID#"${{ github.event.inputs.LOGIN_UID }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
||||||
sudo sed -i 's#GID#"${{ github.event.inputs.LOGIN_GID }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
sudo sed -i 's#GID#"${{ github.event.inputs.LOGIN_GID }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
||||||
sudo sed -i 's#CX_VERSION#${{ github.event.inputs.CX_VERSION }}#g' ${{ env.DEPLOY_DIR }}index.html
|
|
||||||
sudo sed -i 's#IMAGE_URL#"${{ env.IMAGE_NAME }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
sudo sed -i 's#IMAGE_URL#"${{ env.IMAGE_NAME }}"#g' ${{ env.DEPLOY_DIR }}index.html
|
||||||
sudo sed -i 's#DEVICE_TYPE#"bytes"#g' ${{ env.DEPLOY_DIR }}index.html
|
sudo sed -i 's#DEVICE_TYPE#"bytes"#g' ${{ env.DEPLOY_DIR }}index.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue