ci: update CI/CD workflows to use node:22 container and switch to apt-get for package management
This commit is contained in:
parent
c7a9d05b94
commit
91a573a95a
2 changed files with 8 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ on:
|
|||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -33,6 +34,7 @@ jobs:
|
|||
deploy-beta:
|
||||
needs: build-and-test
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22
|
||||
steps:
|
||||
- name: Download Build Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
|
|
@ -42,7 +44,7 @@ jobs:
|
|||
|
||||
- name: Install AWS CLI
|
||||
run: |
|
||||
apk add --no-cache aws-cli
|
||||
apt-get update && apt-get install -y awscli
|
||||
|
||||
- name: Deploy to S3
|
||||
run: aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET_BETA }} --delete
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ on:
|
|||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -33,6 +34,7 @@ jobs:
|
|||
deploy-prod:
|
||||
needs: build-and-test
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22
|
||||
environment:
|
||||
name: production
|
||||
steps:
|
||||
|
|
@ -43,6 +45,9 @@ jobs:
|
|||
path: dist
|
||||
|
||||
- name: Deploy to Production via FTP
|
||||
run: |
|
||||
apt-get update && apt-get install -y lftp
|
||||
|
||||
env:
|
||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue