--- a/.github/workflows/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Docker build - -on: - push: - branches: [ master ] - schedule: - - cron: '* 1 * * *' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Docker login - run: docker login -u gzusetech -p "$TOKEN" - env: - TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build image - run: docker build -t usetechcorp/nft_parachain . - - name: Push the image to Docker hub - run: docker push usetechcorp/nft_parachain:latest - --- /dev/null +++ b/.github/workflows/node_build_test.yml @@ -0,0 +1,44 @@ +name: Build & test + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ develop ] + # pull_request: + # branches: [ develop ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-20.04 + + # if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + #runs ssh connection + - name: Go to server + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SERVER_IP }} + username: ${{ secrets.SERVER_USERNAME }} + key: ${{ secrets.KEY }} + port: ${{ secrets.SERVER_PORT }} + # command_timeout: 200m + script: | + eval $(ssh-agent -s) + ssh-add /home/devops/.ssh/git_hub + git clone git@github.com:usetech-llc/nft_private.git + cd nft_private + git checkout develop + # git pull --all + chmod +x ci_node.sh + ./ci_node.sh + rm -rf /home/polkadot/nft_private \ No newline at end of file --- a/.github/workflows/notify.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: telegram message -on: - push: - branches: [ develop ] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: avkviring/telegram-github-action@v0.0.8 - env: - telegram_to: ${{ secrets.TELEGRAM_TO }} - telegram_token: ${{ secrets.TELEGRAM_TOKEN }} - event: ${{ toJson(github.event) }} \ No newline at end of file --- a/node_build_test.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build & test - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ develop ] - # pull_request: - # branches: [ develop ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - build: - # The type of runner that the job will run on - runs-on: ubuntu-20.04 - - # if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - #runs ssh connection - - name: Go to server - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.SERVER_IP }} - username: ${{ secrets.SERVER_USERNAME }} - key: ${{ secrets.KEY }} - port: ${{ secrets.SERVER_PORT }} - # command_timeout: 200m - script: | - eval $(ssh-agent -s) - ssh-add /home/devops/.ssh/git_hub - git clone git@github.com:usetech-llc/nft_private.git - cd nft_private - git checkout develop - # git pull --all - chmod +x ci_node.sh - ./ci_node.sh - rm -rf /home/polkadot/nft_private \ No newline at end of file