Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -24,11 +24,11 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
IS_COPY_DOCKERFILE:
|
IS_COPY_DOCKERFILE:
|
||||||
description: "Using for copy default dockerfile."
|
description: "Using for copy default dockerfile from https://github.com/ArbinaHQ/arbina-github-runner/tree/master/docker/api."
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
IS_COPY_DOCKER_DIRECTORY:
|
IS_COPY_DOCKER_DIRECTORY:
|
||||||
description: "Using for copy default docker directory (entrypoint, cron, healthcheck)."
|
description: "Using for copy default docker directory (entrypoint, cron, healthcheck) from https://github.com/ArbinaHQ/arbina-github-runner/tree/master/docker/api."
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
IS_COPY_DOCKERFILE:
|
IS_COPY_DOCKERFILE:
|
||||||
description: "Using for copy default dockerfile."
|
description: "Using for copy default dockerfile from https://github.com/ArbinaHQ/arbina-github-runner/tree/master/docker/api."
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
IS_COPY_DOCKER_DIRECTORY:
|
IS_COPY_DOCKER_DIRECTORY:
|
||||||
description: "Using for copy default docker directory (entrypoint, cron, healthcheck)."
|
description: "Using for copy default docker directory (entrypoint, cron, healthcheck) from https://github.com/ArbinaHQ/arbina-github-runner/tree/master/docker/api."
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
13
.github/workflows/ui-workflow.yml
vendored
13
.github/workflows/ui-workflow.yml
vendored
@@ -11,11 +11,16 @@ on:
|
|||||||
description: "Disable pushing to ECR. Default is true."
|
description: "Disable pushing to ECR. Default is true."
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
IS_BUILD_ENABLED:
|
||||||
|
description: "Enable building. Default is true."
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
NODE_VERSION:
|
NODE_VERSION:
|
||||||
description: "Node version to setup. Default is 14."
|
description: "Node version to setup. Default is 16."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: '14'
|
default: '16'
|
||||||
secrets:
|
secrets:
|
||||||
SECRET_GH_TOKEN_CAN_READ_PACKAGES:
|
SECRET_GH_TOKEN_CAN_READ_PACKAGES:
|
||||||
required: true
|
required: true
|
||||||
@@ -37,12 +42,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.NODE_VERSION }}
|
node-version: ${{ inputs.NODE_VERSION }}
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
|
scope: '@arbinahq'
|
||||||
|
|
||||||
- run: (rm .npmrc || true) && npm install
|
- run: (rm .npmrc || true) && npm install
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.SECRET_GH_TOKEN_CAN_READ_PACKAGES }}
|
NODE_AUTH_TOKEN: ${{ secrets.SECRET_GH_TOKEN_CAN_READ_PACKAGES }}
|
||||||
|
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
if: ${{ inputs.IS_BUILD_ENABLED }}
|
||||||
|
|
||||||
- name: Login to ECR
|
- name: Login to ECR
|
||||||
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
||||||
|
|||||||
Reference in New Issue
Block a user