diff --git a/.github/workflows/deploy-non-main.yml b/.github/workflows/deploy-non-main.yml deleted file mode 100644 index e481a4f..0000000 --- a/.github/workflows/deploy-non-main.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: build-other-branches - -on: - push: - branches: - - '*' - - '!main' - -jobs: - build_other_branch: - runs-on: ubuntu-latest - steps: - - name: Use Node.js 14.6.0 - uses: actions/setup-node@v1 - with: - node-version: '14.6.0' - - - name: Install npm packages - run: | - npm i - env: - CI: true - - - name: Run Tests - uses: cypress-io/github-action@v2 - with: - install: false - command: npm run test:all - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Build and push compose - uses: docker/build-push-action@v2 - with: - file: Dockerfile - context: . - push: true - tags: provenanceio/explorer-frontend-${{ steps.get-branch-name.outputs.branch }}:latest - - - \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 88eefd2..709265b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,8 +2,6 @@ name: build on: push: - branches: - - '*' jobs: build: @@ -37,7 +35,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Build and push testnet + - name: Get Branch Name + id: get-branch-name + run: echo "::set-output name=branch::$(echo $GITHUB_REF | sed 's/refs\/heads\///')" + + - name: Build and push privatenet uses: docker/build-push-action@v2 with: target: runner