Skip to content

fix: using different github action #30

fix: using different github action

fix: using different github action #30

Workflow file for this run

name: build-and-deploy-tarball
on:
push:
branches: ["master", "ci/cd-implementation"]
jobs:
build-and-deploy-tarball:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup for docker building tools
uses: docker/setup-buildx-action@v3
- name: uploading all repo
uses: trendyminds/github-actions-rsync@master
with:
RSYNC_OPTIONS: -avzr --delete --exclude node_modules --exclude '.git*'
RSYNC_TARGET: /home/ec2-user/
RSYNC_SOURCE: .
env:
SSH_PRIVATE_KEY: ${{secrets.VPS_SSH_KEY}}
SSH_USERNAME: ${{secrets.VPS_USER}}
SSH_HOSTNAME: ${{secrets.VPS_HOST}}
- name: install utilities
run: |
sudo apt-get install docker-compose
- name: create .env for remote
run: |
cat > .env <<EOF
BACKEND_PORT=${{ secrets.BACKEND_PORT }}
WEBVIEW_PORT=${{ secrets.WEBVIEW_PORT }}
VITE_BACKEND_URL=${{ secrets.VITE_BACKEND_URL }}
BACKEND_HOST=${{ secrets.BACKEND_HOST }}
WEBVIEW_URL=${{ secrets.WEBVIEW_URL }}
EOF
- name: build images
run: |
docker-compose -f building.yml build
- name: save image
run: |
mkdir images
docker save milk-folio_backend:latest milk-folio_webview:latest > ./images/images.tar