Skip to content

Commit

Permalink
Add GitHub Actions workflow for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
hangtantai committed Nov 25, 2024
1 parent e95f5f8 commit a85bb12
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy to VM

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push backend image
run: |
docker build -t my-backend:latest -f Dockerfile .
docker push my-backend:latest

0 comments on commit a85bb12

Please sign in to comment.