add image docker
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 16s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 16s
This commit is contained in:
parent
a7918a35e2
commit
3cc4da63fb
3 changed files with 26 additions and 18 deletions
|
|
@ -9,20 +9,14 @@ jobs:
|
|||
deploy:
|
||||
name: Build and Deploy to Production
|
||||
runs-on: docker
|
||||
container:
|
||||
image: forgejo-ci-node:latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git .
|
||||
ls -la
|
||||
|
||||
- name: Setup Node.js
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq curl
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt-get install -y -qq nodejs
|
||||
node --version
|
||||
npm --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm ci
|
||||
|
|
@ -44,7 +38,6 @@ jobs:
|
|||
PASSWORD: ${{ secrets.PASSWORD }}
|
||||
PRODUCTION_HOST: ${{ secrets.PRODUCTION_HOST }}
|
||||
run: |
|
||||
apt-get install -y -qq lftp
|
||||
cd dist
|
||||
lftp -c "
|
||||
set ftp:ssl-allow no;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue