Skip to content

add migration version file #29

add migration version file

add migration version file #29

Workflow file for this run

name: Build & deploy container images
on:
workflow_dispatch:
push:
permissions:
contents: read
packages: write
jobs:
build:
name: build application
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
file: deploy/Dockerfile
tags: ghcr.io/gbswhs/bus_boarding_api:latest
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
cd /home/ec2-user
docker compose pull
docker compose up -d
docker image prune -f