dockerize

This commit is contained in:
sparshg
2024-09-24 01:19:34 +05:30
parent 9ad193e831
commit a0eec106e4
7 changed files with 210 additions and 2 deletions

28
.github/workflows/cd.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Deploy
on:
workflow_run:
workflows: ["Check"]
types:
- completed
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: user/app:latest