Create docker-image.yml

This commit is contained in:
losehu 2023-12-01 16:46:03 +08:00 committed by GitHub
parent f4e3140743
commit 572f51471e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/docker-image.yml vendored Normal file
View file

@ -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