-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update staging pipeline * feat: stg pipeline FIX | Add .env (#46) * chore: update staging pipeline * feat: stg pipeline * feat: create .env FIX | Fix stg pipeline fix: fix pipeline fix: fix pipeline
- Loading branch information
Showing
9 changed files
with
3,244 additions
and
2,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
NOCODB_API_URL= | ||
NOCODB_API_TOKEN= | ||
NOCODB_API_TOKEN= | ||
|
||
NOCODB_API_URL=https://noco.kitton.dev/api/v2/tables | ||
NOCODB_API_TOKEN=AyLWAtLL-1dPYRKA4w1vLpJiiN3oo_cBpGECG0mz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: CICD Staging | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
env: | ||
NOCODB_API_TOKEN: ${{ secrets.STG_NOCODB_API_TOKEN }} | ||
NOCODB_API_URL: ${{ secrets.STG_NOCODB_API_URL }} | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GTK }} | ||
|
||
- name: Build and Push Docker Image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
tags: ghcr.io/ce-smart-career/${{ github.event.repository.name }}-stg:latest | ||
secrets: | | ||
NOCODB_API_TOKEN=${{ secrets.STG_NOCODB_API_TOKEN }} | ||
NOCODB_API_URL=${{ secrets.STG_NOCODB_API_URL }} | ||
deploy: | ||
name: deploy | ||
needs: ['build'] | ||
runs-on: [self-hosted, runner-stg] | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GTK }} | ||
|
||
- name: Deploy docker-compose stack | ||
run: docker compose up -d --build --force-recreate | ||
|
||
- name: Prune Docker system | ||
run: docker system prune -af |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
services: | ||
ce-smart-career: | ||
container_name: ce-smart-career | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
image: ghcr.io/ce-smart-career/ce-smart-career-2024-stg:latest | ||
restart: always | ||
ports: | ||
- 3000:3000 | ||
- '3000:3000' | ||
environment: | ||
- NOCODB_API_URL | ||
- NOCODB_API_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.