Compare commits

...

7 Commits

Author SHA1 Message Date
84616d063d 2 2023-05-07 20:05:26 -04:00
344dc93d3e a 2023-05-07 19:56:16 -04:00
560f3b384a check version 2023-05-07 19:54:13 -04:00
d497c2a219 dummy chages 2023-05-07 19:41:39 -04:00
dea064e7fa dummy change 2023-05-07 19:38:21 -04:00
1a103715f6 remove path for commit 2023-05-07 19:37:57 -04:00
8d03869ee4 dummy change 2023-05-07 19:34:59 -04:00
2 changed files with 33 additions and 29 deletions

View File

@ -10,9 +10,9 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- 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
- uses: paulhatch/semantic-version@v5.0.2 - uses: paulhatch/semantic-version@v5.0.2
id: version id: version
with: with:
@ -24,10 +24,10 @@ jobs:
# Same as above except indicating a minor change, supports regular expressions wrapped with '/' # Same as above except indicating a minor change, supports regular expressions wrapped with '/'
minor_pattern: "(MINOR)" minor_pattern: "(MINOR)"
# A string to determine the format of the version output # A string to determine the format of the version output
version_format: "${major}.${minor}.${patch}-prerelease${increment}" version_format: "${major}.${minor}.${patch}-${increment}"
# Optional path to check for changes. If any changes are detected in the path the # Optional path to check for changes. If any changes are detected in the path the
# 'changed' output will true. Enter multiple paths separated by spaces. # 'changed' output will true. Enter multiple paths separated by spaces.
change_path: "backend,frontend" change_path: "backend/ frontend/"
# Prevents pre-v1.0.0 version from automatically incrementing the major version. # Prevents pre-v1.0.0 version from automatically incrementing the major version.
# If enabled, when the major version is 0, major releases will be treated as minor and minor as patch. Note that the version_type output is unchanged. # If enabled, when the major version is 0, major releases will be treated as minor and minor as patch. Note that the version_type output is unchanged.
enable_prerelease_mode: true enable_prerelease_mode: true
@ -42,27 +42,28 @@ jobs:
echo "Output Value: ${{ steps.version.outputs.version }}" echo "Output Value: ${{ steps.version.outputs.version }}"
echo "Output Value: ${{ steps.version.outputs.version_type }}" echo "Output Value: ${{ steps.version.outputs.version_type }}"
echo "Output Value: ${{ steps.version.outputs.increment }}" echo "Output Value: ${{ steps.version.outputs.increment }}"
- name: Save commit hashes for tag echo "Output Value: ${{ steps.version.outputs.changed }}"
id: commit # - name: Save commit hashes for tag
uses: pr-mpt/actions-commit-hash@v2 # id: commit
- name: 🔧 Set up Docker Buildx # uses: pr-mpt/actions-commit-hash@v2
uses: docker/setup-buildx-action@v2 # - name: 🔧 Set up Docker Buildx
- name: 🐋 Login to Docker Hub # uses: docker/setup-buildx-action@v2
uses: docker/login-action@v2 # - name: 🐋 Login to Docker Hub
with: # uses: docker/login-action@v2
username: ${{ secrets.DOCKERHUB_USERNAME }} # with:
password: ${{ secrets.DOCKERHUB_TOKEN }} # username: ${{ secrets.DOCKERHUB_USERNAME }}
- name: Set up Depot CLI # password: ${{ secrets.DOCKERHUB_TOKEN }}
uses: depot/setup-action@v1 # - name: Set up Depot CLI
- name: 📦 Build backend and export to Docker # uses: depot/setup-action@v1
uses: depot/build-push-action@v1 # - name: 📦 Build backend and export to Docker
with: # uses: depot/build-push-action@v1
project: 64mmf0n610 # with:
token: ${{ secrets.DEPOT_PROJECT_TOKEN }} # project: 64mmf0n610
push: true # token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
context: . # push: true
tags: | # context: .
infisical/infisical:latest # tags: |
infisical/infisical:${{ steps.commit.outputs.short }} # infisical/infisical:latest
platforms: linux/amd64,linux/arm64 # infisical/infisical:${{ steps.commit.outputs.short }}
file: Dockerfile.standalone-infisical # platforms: linux/amd64,linux/arm64
# file: Dockerfile.standalone-infisical

View File

@ -28,6 +28,9 @@ import {
import { getFolderPath, getFoldersInDirectory, normalizePath } from '../../utils/folder'; import { getFolderPath, getFoldersInDirectory, normalizePath } from '../../utils/folder';
import { ROOT_FOLDER_PATH } from '../../utils/folder'; import { ROOT_FOLDER_PATH } from '../../utils/folder';
// test commm
// hshs
/** /**
* Peform a batch of any specified CUD secret operations * Peform a batch of any specified CUD secret operations
* (used by dashboard) * (used by dashboard)