Revert "Added some test to fix node 20"

This reverts commit 18a59794b8.
This commit is contained in:
Kasra Bigdeli
2024-10-19 09:38:10 -07:00
parent 18a59794b8
commit f014621f7c
3 changed files with 0 additions and 54 deletions
-34
View File
@@ -1,34 +0,0 @@
name: Build and push the edge image
on:
push:
branches:
- master
jobs:
run-pre-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci
npm run build
npm run lint
npm run formatter
npm run test
build-publish-docker-hub:
needs: run-pre-checks
runs-on: ubuntu-latest
steps:
- uses: azure/docker-login@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- uses: actions/checkout@v1
- name: Build and Push Edge to DockerHub
shell: bash
run: ./test_build.sh
-6
View File
@@ -1,6 +0,0 @@
FROM node:18-alpine
RUN echo "Node 18"
RUN node -v
RUN npm -v
RUN echo "Finished Node 18"
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
sudo apt-get update && sudo apt-get install qemu-user-static
# export DOCKER_CLI_EXPERIMENTAL=enabled
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run --rm --privileged tonistiigi/binfmt --install all
docker buildx ls
docker buildx rm mybuilder || echo "mybuilder not found"
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t my-test-image -f test-dockerfile.edge --load .