deploy frontend

This commit is contained in:
sparshg
2024-09-24 18:06:05 +05:30
parent f1bffbe56a
commit 103ac813f9
5 changed files with 53 additions and 4 deletions

30
.github/workflows/cd-backend.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Deploy
on:
push:
tags:
- v**
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
environment: battleship
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max