Skip to content

checking db url

checking db url #3

Workflow file for this run

name: Build and Deploy to Docker Hub
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 # Added for better build performance
- name: Log in to Docker Hub
uses: docker/login-action@v3 # Updated to v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Backend Docker image
uses: docker/build-push-action@v5 # Updated to v5
with:
context: .
file: ./Dockerfile.backend
push: true
tags: puneetnj/course-app-be:latest
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=puneetnj/course-app-be:latest
cache-to: type=inline
build-args: |
DATABASE_URL=${{ secrets.DATABASE_URL }}
USER_JWT_PASSWORD=${{ secrets.USER_JWT_PASSWORD }}
ADMIN_JWT_PASSWORD=${{ secrets.ADMIN_JWT_PASSWORD }}
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}
CDN_LINK=${{ secrets.CDN_LINK }}
- name: Build and Push Frontend Docker image
uses: docker/build-push-action@v5 # Updated to v5
with:
context: .
file: ./Dockerfile.frontend
push: true
tags: puneetnj/course-app-fe:latest
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=puneetnj/course-app-fe:latest
cache-to: type=inline
- name: Verify Backend Image
run: |
docker pull puneetnj/course-app-be:latest
docker image inspect puneetnj/course-app-be:latest
- name: Verify Frontend Image
run: |
docker pull puneetnj/course-app-fe:latest
docker image inspect puneetnj/course-app-fe:latest