mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
add back other build steps
This commit is contained in:
@@ -6,83 +6,83 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# infisical-image:
|
infisical-image:
|
||||||
# name: Build backend image
|
name: Build backend image
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: ☁️ Checkout source
|
- name: ☁️ Checkout source
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# - name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
# uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
# with:
|
with:
|
||||||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_FOR_ECR }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_FOR_ECR }}
|
||||||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_FOR_ECR }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_FOR_ECR }}
|
||||||
# aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
# - name: Login to Amazon ECR
|
- name: Login to Amazon ECR
|
||||||
# id: login-ecr
|
id: login-ecr
|
||||||
# uses: aws-actions/amazon-ecr-login@v1
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
# - name: 📦 Install dependencies to test all dependencies
|
- name: 📦 Install dependencies to test all dependencies
|
||||||
# run: npm ci --only-production
|
run: npm ci --only-production
|
||||||
# working-directory: backend
|
working-directory: backend
|
||||||
# # - name: 🧪 Run tests
|
# - name: 🧪 Run tests
|
||||||
# # run: npm run test:ci
|
# run: npm run test:ci
|
||||||
# # working-directory: backend
|
# working-directory: backend
|
||||||
# - name: Save commit hashes for tag
|
- name: Save commit hashes for tag
|
||||||
# id: commit
|
id: commit
|
||||||
# uses: pr-mpt/actions-commit-hash@v2
|
uses: pr-mpt/actions-commit-hash@v2
|
||||||
# - name: 🔧 Set up Docker Buildx
|
- name: 🔧 Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
# - name: 🐋 Login to Docker Hub
|
- name: 🐋 Login to Docker Hub
|
||||||
# uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# - name: Set up Depot CLI
|
- name: Set up Depot CLI
|
||||||
# uses: depot/setup-action@v1
|
uses: depot/setup-action@v1
|
||||||
# - name: 📦 Build backend and export to Docker
|
- name: 📦 Build backend and export to Docker
|
||||||
# uses: depot/build-push-action@v1
|
uses: depot/build-push-action@v1
|
||||||
# with:
|
with:
|
||||||
# project: 64mmf0n610
|
project: 64mmf0n610
|
||||||
# token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
|
token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
|
||||||
# load: true
|
load: true
|
||||||
# context: .
|
context: .
|
||||||
# file: Dockerfile.standalone-infisical
|
file: Dockerfile.standalone-infisical
|
||||||
# tags: infisical/infisical:test
|
tags: infisical/infisical:test
|
||||||
# - name: 🏗️ Build backend and push to docker hub
|
- name: 🏗️ Build backend and push to docker hub
|
||||||
# uses: depot/build-push-action@v1
|
uses: depot/build-push-action@v1
|
||||||
# with:
|
with:
|
||||||
# project: 64mmf0n610
|
project: 64mmf0n610
|
||||||
# token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
|
token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
|
||||||
# push: true
|
push: true
|
||||||
# context: .
|
context: .
|
||||||
# file: Dockerfile.standalone-infisical
|
file: Dockerfile.standalone-infisical
|
||||||
# tags: |
|
tags: |
|
||||||
# infisical/staging_infisical:${{ steps.commit.outputs.short }}
|
infisical/staging_infisical:${{ steps.commit.outputs.short }}
|
||||||
# infisical/staging_infisical:latest
|
infisical/staging_infisical:latest
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
# build-args: |
|
build-args: |
|
||||||
# POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
|
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
|
||||||
# INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
|
INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
|
||||||
|
|
||||||
|
|
||||||
# postgres-migration:
|
postgres-migration:
|
||||||
# name: Run latest migration files
|
name: Run latest migration files
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [infisical-image]
|
needs: [infisical-image]
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout code
|
- name: Checkout code
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
# - name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
# uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
# with:
|
with:
|
||||||
# node-version: "20"
|
node-version: "20"
|
||||||
# - name: Change directory to backend and install dependencies
|
- name: Change directory to backend and install dependencies
|
||||||
# env:
|
env:
|
||||||
# DB_CONNECTION_URI: ${{ secrets.AWS_DB_CONNECTION_URI }}
|
DB_CONNECTION_URI: ${{ secrets.AWS_DB_CONNECTION_URI }}
|
||||||
# run: |
|
run: |
|
||||||
# cd backend
|
cd backend
|
||||||
# npm install
|
npm install
|
||||||
# npm run migration:latest
|
npm run migration:latest
|
||||||
gamma-deployment:
|
gamma-deployment:
|
||||||
name: Deploy to gamma
|
name: Deploy to gamma
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user