Skip to content

fix : TC_CLOUD 인증 안되는 현상 수정 #35

fix : TC_CLOUD 인증 안되는 현상 수정

fix : TC_CLOUD 인증 안되는 현상 수정 #35

Workflow file for this run

name: cd -dev
on:
push:
branches:
- develop
jobs:
build-back-docker-img:
uses: ./.github/workflows/build-docker-image-dev.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKER_MATCHING_IMAGE_NAME: ${{ secrets.DOCKER_MATCHING_IMAGE_NAME }}
TC_CLOUD_TOKEN: ${{ secrets.TC_CLOUD_TOKEN }}

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

View workflow run for this annotation

GitHub Actions / cd -dev

Invalid workflow file

The workflow is not valid. .github/workflows/cd-dev.yml (Line: 15, Col: 23): Invalid secret, TC_CLOUD_TOKEN is not defined in the referenced workflow.

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

View workflow run for this annotation

GitHub Actions / cd -dev

Invalid workflow file

The workflow is not valid. .github/workflows/cd-dev.yml (Line: 15, Col: 23): Invalid secret, TC_CLOUD_TOKEN is not defined in the referenced workflow.
deploy:
needs: build-back-docker-img
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_HOST_USER_NAME }}
key: ${{ secrets.DEV_PRIVATE_KEY }}
script: |
cd ${{ secrets.DEV_DEPLOY_DIRECTORY }}
docker compose stop ${{ secrets.DOCKER_MATCHING_CONTAINER_NAME }}
docker compose rm -f ${{ secrets.DOCKER_MATCHING_CONTAINER_NAME }}
docker image rm ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_MATCHING_IMAGE_NAME }}
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_MATCHING_IMAGE_NAME }}
docker compose up -d