From 5aa257261db717591e046b2950de61778bb90be7 Mon Sep 17 00:00:00 2001 From: just-pthai-it Date: Sun, 25 Aug 2024 17:10:14 +0700 Subject: [PATCH] ci(github-action): renove unused workflows. --- .github/workflows/.dockerize-development.yml | 29 --------- .github/workflows/.github-actions.yml | 62 -------------------- 2 files changed, 91 deletions(-) delete mode 100644 .github/workflows/.dockerize-development.yml delete mode 100644 .github/workflows/.github-actions.yml diff --git a/.github/workflows/.dockerize-development.yml b/.github/workflows/.dockerize-development.yml deleted file mode 100644 index 0f65ee8..0000000 --- a/.github/workflows/.dockerize-development.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Dockerize app -run-name: Dockerize action -on: - push: - branches: - - development - -jobs: - Build-image: - runs-on: ubuntu-latest - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - file: Dockerfile-development - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/tss-microservices:dev-v1 \ No newline at end of file diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml deleted file mode 100644 index a2ce408..0000000 --- a/.github/workflows/.github-actions.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: - push: - branches: - - ci_cd_implementation -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - env: - SSH_PRIVATE_KEY_LOCALCOMPUTER: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }} - MY_VPS_USER: ${{ secrets.MY_VPS_USER }} - MY_VPS_IP_ADDRESS: ${{ secrets.MY_VPS_IP_ADDRESS }} - MY_VPS_PROJECT_PATH: ${{ secrets.MY_VPS_PROJECT_PATH }} - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: cat /proc/$$/stat | awk '{print $6}' - - run: cat /proc/$$/stat | awk '{print $6}' - - run: echo "🍏 This job's status is ${{ job.status }}." - - run: | - export ABCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC=abc - env - - run: env - - run: | - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") - - run: printenv SSH_AUTH_SOCK - - run: | - eval $(ssh-agent -s) - - run: printenv SSH_AUTH_SOCK - - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") - # - name: Set up SSH agent - # uses: webfactory/ssh-agent@v0.5.4 - # with: - # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }} - # - run: | - # eval $(ssh-agent -s) - # ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") - # mkdir -p ~/.ssh - # ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts - # ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS << 'EOF' - # whoami - # ls - # cd projects - # ls - # cd ESS-microservices - # ls - # # cd $MY_VPS_PROJECT_PATH - # cat ~/.bashrc - # . ~/.bashrc - # ll - # EOF - - run: echo "🍏 This job's status is ${{ job.status }}."