Revert "add prod img publish ste p"

This reverts commit f7dbd41431.
This commit is contained in:
Maidul Islam
2023-05-30 07:29:45 -04:00
parent 03c65c8635
commit 821385c2f3
+7 -12
View File
@@ -5,7 +5,7 @@ on:
- "infisical/v*.*.*" - "infisical/v*.*.*"
jobs: jobs:
gamma-backend-image: 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.GAMMA_DOCKERHUB_TOKEN }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} 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
@@ -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
gamma-frontend-image: 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.GAMMA_DOCKERHUB_TOKEN }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} 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 frontend and export to Docker - name: 📦 Build frontend and export to Docker
@@ -146,15 +146,10 @@ 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 --wait --install infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods helm upgrade 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