Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PrasadAthani authored Jan 9, 2025
1 parent bcc8754 commit 1c34ac2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Push Docker Image

on:
push:
branches:
- prod

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create config file from secret
run: |
echo "${{ secrets.CONFIG_FILE }}" > config
- name: Build Docker Image
run: |
docker build \
--build-arg CONFIG_FILE_PATH=config \
-t psa-aibot:latest .
- name: Push Docker Image to Docker Hub
run: |
docker push psa-aibot:latest

0 comments on commit 1c34ac2

Please sign in to comment.