mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
Create docker-image.yml
This commit is contained in:
parent
f4e3140743
commit
572f51471e
1 changed files with 26 additions and 0 deletions
26
.github/workflows/docker-image.yml
vendored
Normal file
26
.github/workflows/docker-image.yml
vendored
Normal 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
|
Loading…
Reference in a new issue