diff --git a/.github/workflows/publishondockerhub.yml b/.github/workflows/publishondockerhub.yml index 68932bc30..fd3d7b564 100644 --- a/.github/workflows/publishondockerhub.yml +++ b/.github/workflows/publishondockerhub.yml @@ -2,7 +2,7 @@ name: Build and Publish on: push: branches: - - 'parachain_dev' + - 'add/1205859619866294_add-test-stage' tags: - 'peaq-dev-v*' # For the peaq-dev's env in the parchain-launch usage - 'krest-v*' # For the krest env in the parchain-launch usage @@ -34,14 +34,14 @@ jobs: type=ref,event=pr type=ref,event=tag - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - file: scripts/Dockerfile - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + # - name: Build and push + # uses: docker/build-push-action@v3 + # with: + # context: . + # file: scripts/Dockerfile + # push: ${{ github.event_name != 'pull_request' }} + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} deploy: name: Deploy @@ -77,3 +77,15 @@ jobs: sudo TAG=${{ steps.image-version.outputs.tag }} docker compose pull sudo TAG=${{ steps.image-version.outputs.tag }} docker compose down -v sudo TAG=${{ steps.image-version.outputs.tag }} docker compose up -d --build --remove-orphans + Test: + name: Run Auto Test + runs-on: ubuntu-20.04 + needs: deploy + steps: + - name: Checkout code from specific branch + uses: actions/checkout@v2 + with: + repository: https://github.com/peaqnetwork/peaq-network-qa + ref: test/1205859619866294_add-test-stage-in-peaqnode-deployment + - name: Run AutoTest + uses: https://github.com/peaqnetwork/peaq-network-qa/blob/test/1205859619866294_add-test-stage-in-peaqnode-deployment/.github/workflows/RunTest.yml