mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 21:26:40 +00:00
Trying something new
This commit is contained in:
@@ -17,39 +17,38 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch: [x64, arm64]
|
||||||
- x64
|
os: [linux, macos, win]
|
||||||
- arm64
|
include:
|
||||||
node-version:
|
- os: linux
|
||||||
- 18
|
docker-image: node:18-buster
|
||||||
os:
|
- os: macos
|
||||||
- linux
|
docker-image: node:18-buster
|
||||||
- macos
|
- os: win
|
||||||
- win
|
docker-image: node:18-buster
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Set up Docker Buildx
|
||||||
uses: actions/setup-node@v3
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: 🐋 Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Install pkg
|
- name: Build with Docker
|
||||||
run: npm install -g pkg
|
run: |
|
||||||
|
docker run --rm \
|
||||||
- name: Install dependencies (backend)
|
--platform=${{ matrix.os }} \
|
||||||
run: npm install
|
-v ${{ github.workspace }}/backend:/workspace/backend \
|
||||||
|
-v ${{ github.workspace }}/frontend:/workspace/frontend \
|
||||||
- name: Install dependencies (frontend)
|
-w /workspace/backend \
|
||||||
run: npm install --prefix ../frontend
|
${{ matrix.docker-image }} \
|
||||||
|
bash -c "npm install -g pkg && npm install && npm install --prefix ../frontend && npm run binary:build && pkg --no-bytecode --public-packages \"*\" --public --target node18-${{ matrix.os }}-${{ matrix.arch }} --output ./binary/infisical-${{ matrix.os }}-${{ matrix.arch }} ."
|
||||||
- name: Prerequisites for pkg
|
|
||||||
run: npm run binary:build
|
|
||||||
|
|
||||||
- name: Package into node binary
|
|
||||||
run: pkg --no-bytecode --public-packages \"*\" --public --target host --output ./binary/infisical-${{ matrix.os }}-${{ matrix.arch }} .
|
|
||||||
|
|
||||||
- name: List files
|
- name: List files
|
||||||
run: ls -la ./binary
|
run: ls -la ./binary
|
||||||
|
|||||||
Reference in New Issue
Block a user