Skip to content

fix: 라켓 업데이트 방식 변경 (#125) #518

fix: 라켓 업데이트 방식 변경 (#125)

fix: 라켓 업데이트 방식 변경 (#125) #518

Workflow file for this run

name: BE CI/CD

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on: [push, pull_request]
jobs:
build:
name: CI
runs-on: self-hosted
if: github.ref == 'refs/heads/main'
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# submodules: recursive
# token: ${{ secrets.ACTION_TOKEN }} # personal token
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: ${{ secrets.AWS_REGION }}
# - name: Build image in EC2
# id: build-image
# run: |
# docker build -t backend:latest .
# - name: Stop and remove previous container
# run: |
# docker rm -f backend:service || true
# # - name: Login to Amazon ECR
# # id: login-ecr
# # uses: aws-actions/amazon-ecr-login@v1
# # - name: Pull image from Amazon ECR and run container
# # continue-on-error: true
# # run: |
# # cd ~/BE
# # docker rmi be:
# # docker-compose up -d
# - name: Pull image from Amazon ECR and run container
# run: |
# cd ~/BE
# docker image tag backend:latest backend:service
# docker-compose up -d
# # deploy:
# # needs: build
# # name: CD
# # runs-on: self-hosted
# # if: github.ref == 'refs/heads/deploy'
# # steps: