From 572f51471e822af7d97d33fe834ab74e69c9c9ec Mon Sep 17 00:00:00 2001 From: losehu <52628935+losehu@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:46:03 +0800 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..d6013f3 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,26 @@ +name: Docker Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build Docker image + run: docker build -t myapp . + + - name: Run compilation inside Docker container + run: docker run myapp sh ../../../compile-with-docker.sh + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: compiled-firmware + path: compiled-files # Replace with the path to your compiled files