chore: change job container image to node:22 and update checkout script
This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:22-alpine
|
image: node:22
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -18,7 +18,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
|
if ! command -v git >/dev/null 2>&1; then
|
||||||
|
if command -v apk >/dev/null 2>&1; then
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
|
elif command -v apt-get >/dev/null 2>&1; then
|
||||||
|
apt-get update && apt-get install -y git
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
git init
|
git init
|
||||||
git remote add origin http://oauth2:${{ secrets.GIT_TOKEN }}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git
|
git remote add origin http://oauth2:${{ secrets.GIT_TOKEN }}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git
|
||||||
|
|||||||
Reference in New Issue
Block a user