mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
add prod img publish ste p
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
|||||||
- "infisical/v*.*.*"
|
- "infisical/v*.*.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
backend-image:
|
gamma-backend-image:
|
||||||
name: Build backend image
|
name: Build backend image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
- 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.GAMMA_DOCKERHUB_TOKEN }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }}
|
||||||
- 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
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
infisical/backend:${{ steps.extract_version.outputs.version }}
|
infisical/backend:${{ steps.extract_version.outputs.version }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
frontend-image:
|
gamma-frontend-image:
|
||||||
name: Build frontend image
|
name: Build frontend image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -79,8 +79,8 @@ jobs:
|
|||||||
- 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.GAMMA_DOCKERHUB_TOKEN }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }}
|
||||||
- name: Set up Depot CLI
|
- name: Set up Depot CLI
|
||||||
uses: depot/setup-action@v1
|
uses: depot/setup-action@v1
|
||||||
- name: 📦 Build frontend and export to Docker
|
- name: 📦 Build frontend and export to Docker
|
||||||
@@ -146,10 +146,15 @@ jobs:
|
|||||||
- name: Download helm values to file and upgrade gamma deploy
|
- name: Download helm values to file and upgrade gamma deploy
|
||||||
run: |
|
run: |
|
||||||
wget https://raw.githubusercontent.com/Infisical/infisical/main/.github/values.yaml
|
wget https://raw.githubusercontent.com/Infisical/infisical/main/.github/values.yaml
|
||||||
helm upgrade infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods
|
helm upgrade --wait --install infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods
|
||||||
if [[ $(helm status infisical) == *"FAILED"* ]]; then
|
if [[ $(helm status infisical) == *"FAILED"* ]]; then
|
||||||
echo "Helm upgrade failed"
|
echo "Helm upgrade failed"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Helm upgrade was successful"
|
echo "Helm upgrade was successful"
|
||||||
fi
|
fi
|
||||||
|
prod-image-release:
|
||||||
|
name: Release prod image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [gamma-deployment]
|
||||||
|
environment: production-docker-img-release
|
||||||
|
|||||||
Reference in New Issue
Block a user