From 43d49779361f97dbb5946649ea968319623aa648 Mon Sep 17 00:00:00 2001 From: Siavash Namvar <90400593+snsinahub@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:30:19 -0500 Subject: [PATCH] Add workflow ADO_test/snsinahub.circleci --- .github/workflows/snsinahub.circleci.yml | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/snsinahub.circleci.yml diff --git a/.github/workflows/snsinahub.circleci.yml b/.github/workflows/snsinahub.circleci.yml new file mode 100644 index 0000000..3d9a6ab --- /dev/null +++ b/.github/workflows/snsinahub.circleci.yml @@ -0,0 +1,68 @@ +name: ADO_test/snsinahub.circleci +on: + push: + branches: + - main + pull_request: + branches: + - main +env: + tag: "${{ github.run_id }}" +jobs: + Build-Build: + name: Build + runs-on: ubuntu-20.18 + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Build an image + run: docker build ${{ github.workspace }} --file "${{ github.workspace }}/Dockerfile" + Build-print_default_working_directory: + name: print_dir_path + runs-on: ubuntu-20.18 + steps: + - name: checkout + uses: actions/checkout@v2 + - name: converted curl command + uses: wei/curl@master + with: + args: https://snsina.github.io + Deploy_sandbox-Deploy_sandbox: + name: Print job name + needs: + - Build-Build + - Build-print_default_working_directory + runs-on: ubuntu-20.18 + environment: + name: sandbox + env: + url: www.snsina.com + if: github.RUN_NUMBER == 1 + steps: + - name: checkout + uses: actions/checkout@v2 + - name: download artifact + uses: actions/download-artifact@v2 + - name: converted curl command + uses: wei/curl@master + with: + args: https://snsina.github.io + Deploy_prod-Deploy: + name: Print job name + needs: + - Deploy_sandbox-Deploy_sandbox + runs-on: ubuntu-20.18 + environment: + name: prod + env: + url: snsina.github.io + if: github.RUN_NUMBER == 1 + steps: + - name: checkout + uses: actions/checkout@v2 + - name: download artifact + uses: actions/download-artifact@v2 + - name: converted curl command + uses: wei/curl@master + with: + args: https://snsina.github.io