Ephemeral Container Firmware Build #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ephemeral Container Firmware Build | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
jobs: | |
# Save a docker image to use later | |
# https://github.com/orgs/community/discussions/26723 | |
docker_image_build: | |
name: Build Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: false | |
tags: marlin-build:latest | |
firmware_build: | |
needs: docker_image_build | |
name: Build and push firmware | |
runs-on: ubuntu-latest | |
env: | |
BOARD: mks_robin_lite_maple | |
USE_REPO: https://github.com/schmttc/EasyThreeD-K7-STM32 | |
USE_BRANCH: ET4000PLUS-K9 | |
#USE_BRANCH: bugfix-2.0.x | |
#USE_TAG: 2.0.9.3 | |
REGISTRY: ghcr.io | |
UPLOAD_DIR: ET4000PLUS-K9 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Compile firmware | |
run: | | |
docker run \ | |
-u root:root \ | |
-e BOARD \ | |
-e USE_REPO \ | |
-v $(pwd)/Firmware/Builds:/home/platformio/build \ | |
-v $(pwd)/Firmware/Configuration:/home/platformio/CustomConfiguration \ | |
marlin-build:latest |