Compare commits

...

5 Commits

Author SHA1 Message Date
b60095e5bc remove tests 2023-05-29 19:47:10 -04:00
f8b61e1311 rename img name 2023-05-29 19:21:17 -04:00
ad560b3f56 update name of images to lacisifni 2023-05-29 19:16:21 -04:00
254cab5272 correct docker auth 2023-05-29 18:56:09 -04:00
8f2ba3dc22 fix depeneds on 2023-05-29 18:50:59 -04:00

View File

@ -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 }} password: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }}
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} username: ${{ 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
@ -39,16 +39,16 @@ jobs:
token: ${{ secrets.DEPOT_PROJECT_TOKEN }} token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
load: true load: true
context: backend context: backend
tags: infisical/backend:test tags: lacisifni/backend:test
- name: ⏻ Spawn backend container and dependencies # - name: ⏻ Spawn backend container and dependencies
run: | # run: |
docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull # docker compose -f .github/resources/docker-compose.be-test.yml up --wait --quiet-pull
- name: 🧪 Test backend image # - name: 🧪 Test backend image
run: | # run: |
./.github/resources/healthcheck.sh infisical-backend-test # ./.github/resources/healthcheck.sh infisical-backend-test
- name: ⏻ Shut down backend container and dependencies # - name: ⏻ Shut down backend container and dependencies
run: | # run: |
docker compose -f .github/resources/docker-compose.be-test.yml down # docker compose -f .github/resources/docker-compose.be-test.yml down
- name: 🏗️ Build backend and push - name: 🏗️ Build backend and push
uses: depot/build-push-action@v1 uses: depot/build-push-action@v1
with: with:
@ -57,9 +57,9 @@ jobs:
push: true push: true
context: backend context: backend
tags: | tags: |
infisical/backend:${{ steps.commit.outputs.short }} lacisifni/backend:${{ steps.commit.outputs.short }}
infisical/backend:latest lacisifni/backend:latest
infisical/backend:${{ steps.extract_version.outputs.version }} lacisifni/backend:${{ steps.extract_version.outputs.version }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
gamma-frontend-image: gamma-frontend-image:
@ -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 }} password: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }}
password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} username: ${{ 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
@ -90,18 +90,18 @@ jobs:
token: ${{ secrets.DEPOT_PROJECT_TOKEN }} token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
project: 64mmf0n610 project: 64mmf0n610
context: frontend context: frontend
tags: infisical/frontend:test tags: lacisifni/frontend:test
build-args: | build-args: |
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
- name: ⏻ Spawn frontend container # - name: ⏻ Spawn frontend container
run: | # run: |
docker run -d --rm --name infisical-frontend-test infisical/frontend:test # docker run -d --rm --name infisical-frontend-test infisical/frontend:test
- name: 🧪 Test frontend image # - name: 🧪 Test frontend image
run: | # run: |
./.github/resources/healthcheck.sh infisical-frontend-test # ./.github/resources/healthcheck.sh infisical-frontend-test
- name: ⏻ Shut down frontend container # - name: ⏻ Shut down frontend container
run: | # run: |
docker stop infisical-frontend-test # docker stop infisical-frontend-test
- name: 🏗️ Build frontend and push - name: 🏗️ Build frontend and push
uses: depot/build-push-action@v1 uses: depot/build-push-action@v1
with: with:
@ -110,16 +110,16 @@ jobs:
token: ${{ secrets.DEPOT_PROJECT_TOKEN }} token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
context: frontend context: frontend
tags: | tags: |
infisical/frontend:${{ steps.commit.outputs.short }} lacisifni/frontend:${{ steps.commit.outputs.short }}
infisical/frontend:latest lacisifni/frontend:latest
infisical/frontend:${{ steps.extract_version.outputs.version }} lacisifni/frontend:${{ steps.extract_version.outputs.version }}
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 }}
gamma-deployment: gamma-deployment:
name: Deploy to gamma name: Deploy to gamma
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [frontend-image, backend-image] needs: [gamma-frontend-image, gamma-backend-image]
steps: steps:
- name: ☁️ Checkout source - name: ☁️ Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v3