diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6e69d5b12..8605beb76 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -32,9 +32,8 @@ jobs: npm install npm run clean npm run build - ls -la packages/cli/dist/cli.js - - name: Build and push Docker image from main + - name: Build Docker image uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 with: file: ./scripts/ci/docker/zombienet_injected.Dockerfile @@ -53,19 +52,25 @@ jobs: - name: Check out the repo uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v.4.2.0 + - name: npm build + run: | + cd javascript + npm install + npm run clean + npm run build - # - name: Log in to Docker Hub - # uses: docker/login-action@v3 - # with: - # username: ${{ secrets.DOCKERHUB_USER }} - # password: ${{ secrets.DOCKERHUB_PASS }} + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASS }} - # - name: Build and push Docker image from main - # uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 - # with: - # context: . - # file: ./Dockerfile - # push: true - # tags: | - # ${{ env.IMAGE_NAME }}:${{ env.VERSION }} - # ${{ env.IMAGE_NAME }}:latest + - name: Build Docker image + uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 + with: + file: ./scripts/ci/docker/zombienet_injected.Dockerfile + context: . + push: true + tags: | + ${{ env.IMAGE_NAME }}:${{ env.VERSION }} + ${{ env.IMAGE_NAME }}:latest