Skip to content

feat: cd 깃헙 액션 추가 #1

feat: cd 깃헙 액션 추가

feat: cd 깃헙 액션 추가 #1

Workflow file for this run

name: MashUp Admin Server Dev CD
on:
workflow_dispatch:
inputs:
tag:
description: '개발환경에 배포할 서비스 버전을 입력합니다.'
required: true
push:
branches: [ * ]

Check failure on line 10 in .github/workflows/cd-dev-admin.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd-dev-admin.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
jobs:
trigger:
name: 개발 환경 ${{ inputs.tag }} 배포한다
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Custom Deployment Task
env:
TAG: ${{ inputs.tag }}
run: |
echo "Image Name: $IMAGE_NAME"
echo "Tag: $TAG"
- name: Excuting remote ssh commands
uses: appleboy/ssh-action@v1.0.3
env:
TAG: ${{ inputs.tag }}
with:
host: ${{ secrets.REMOTE_IP }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
envs: TAG
script: |
aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 321148231533.dkr.ecr.ap-northeast-2.amazonaws.com
cd /home/ec2-user/mashup-server/docker/deploy/admin/dev
sh ./deploy-admin.sh $TAG