From 65cb34ab9c5a160730f89558f118d445ca7c3642 Mon Sep 17 00:00:00 2001 From: ysy3285 Date: Tue, 3 Sep 2024 14:06:42 +0900 Subject: [PATCH 1/2] push1 --- .github/workflows/deploy-single-server.yml | 53 ++++++++++++++++++++++ pages/members/07_seoyoony.md | 26 +++++++++++ 2 files changed, 79 insertions(+) create mode 100644 .github/workflows/deploy-single-server.yml create mode 100644 pages/members/07_seoyoony.md diff --git a/.github/workflows/deploy-single-server.yml b/.github/workflows/deploy-single-server.yml new file mode 100644 index 0000000..75f6306 --- /dev/null +++ b/.github/workflows/deploy-single-server.yml @@ -0,0 +1,53 @@ +name: Deploy to Single Server + +on: + push: + branches: + - 'main' + workflow_dispatch: + +env: + IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/cicdtest + IMAGE_TAG: latest + CONTAINER_NAME: ${{ secrets.DOCKERHUB_USERNAME }}-cicd + PORT: 40007 # <- 변경 요망 + +jobs: + cicd: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build Container Image + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64 + push: true + tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} + + - + name: SSH Remote Commands + uses: appleboy/ssh-action@v1.0.3 + with: + host: server.geunsam2.xyz + username: cicduser + password: ${{ secrets.SSH_PASSWORD }} + port: 22 + timeout: 40s + script: | + docker pull ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} + docker rm -f ${{ env.CONTAINER_NAME }} + docker run -d -p ${{ env.PORT }}:3000 --name ${{ env.CONTAINER_NAME }} ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} \ No newline at end of file diff --git a/pages/members/07_seoyoony.md b/pages/members/07_seoyoony.md new file mode 100644 index 0000000..1ac3ead --- /dev/null +++ b/pages/members/07_seoyoony.md @@ -0,0 +1,26 @@ +# 양서윤 + +# 자기소개 + +![프로필 이미지](https://i.namu.wiki/i/mDDzbGmCT0_7Oz5BoiH5jA7vY-av0DKvJs8tPT6ZiePyCezD0vuyHN4tgSCyxm0s7tKHtgHez1GYZrLBMIrAPaVFW55BhVOGeLMIW4anQmRJC5I9nCo0JuiJOebN74ShcN4hF4dtEUG2EaHs0q5Q7gAqMFfHHBAUF8WmOlRJb9E.webp) + +## 안녕하세요! 👋 + +저는 **양서윤**입니다. 현재 [**현대오토에버**](www.hyundai-autoever.com)에서 **계정인증개발팀/GIM**로 일하고 있으며, +기술과 창의력으로 세상을 변화시키는 데 열정을 가지고 있습니다. +소프트웨어 개발과 데이터 분석에 관심이 많고, 다양한 기술을 통해 문제를 해결하는 것을 좋아합니다. + +## 🤗 About Me + +- **name** : 양서윤 +- **velg** : [Seoyoon](https://velog.io/@ysy3285/posts) +- **age** : 🐷 +- **blog** : [융스타](https://blog.naver.com/ysy3285) +- **회사** : 현대오토에버 +- **부서** : 계정인증개발팀 +- **MBTI** : ESTJ + +## 🩷 취미 및 관심사 + +- **취미**: 운동 🏋🏻‍♀️, 여행 ✈️, 블로그 👩🏻‍💻 +- **관심사**: CI/CD🔄, DevOps🛜, 부동산🏠 \ No newline at end of file From bf4fc44e37641b7431df6df275602bdfcb5628a7 Mon Sep 17 00:00:00 2001 From: ysy3285 Date: Tue, 3 Sep 2024 16:16:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?delete=ED=96=88=EC=9D=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-single-server.yml | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/deploy-single-server.yml diff --git a/.github/workflows/deploy-single-server.yml b/.github/workflows/deploy-single-server.yml deleted file mode 100644 index 75f6306..0000000 --- a/.github/workflows/deploy-single-server.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Deploy to Single Server - -on: - push: - branches: - - 'main' - workflow_dispatch: - -env: - IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/cicdtest - IMAGE_TAG: latest - CONTAINER_NAME: ${{ secrets.DOCKERHUB_USERNAME }}-cicd - PORT: 40007 # <- 변경 요망 - -jobs: - cicd: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build Container Image - uses: docker/build-push-action@v4 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} - - - - name: SSH Remote Commands - uses: appleboy/ssh-action@v1.0.3 - with: - host: server.geunsam2.xyz - username: cicduser - password: ${{ secrets.SSH_PASSWORD }} - port: 22 - timeout: 40s - script: | - docker pull ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} - docker rm -f ${{ env.CONTAINER_NAME }} - docker run -d -p ${{ env.PORT }}:3000 --name ${{ env.CONTAINER_NAME }} ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} \ No newline at end of file