Skip to content

Workflow file for this run

name: CI/CD Pipeline
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 Docker image
# run: |
# docker build -t my-backend:latest -f Dockerfile .
# - name: Save Docker image to a tar file
# run: |
# docker save my-backend:latest -o my-backend.tar
- name: Copy Docker image to VM
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_SSH_KEY }}
script: sudo mkdir -p /azureuser/test