This repository has been archived on 2025-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dgvigil-keebs/.github/workflows/docker-build.yml
Dave Vigil 85970528a4
Some checks failed
Build QMK Firmware with Docker / build (push) Successful in 16m18s
Build QMK Firmware with Docker / build (pull_request) Successful in 3m41s
Compile my Keebs / lint-and-compile (pull_request) Failing after 4s
Fixing git workflow build
2025-07-15 14:28:30 -05:00

27 lines
1.2 KiB
YAML

name: Build QMK Firmware with Docker
on: [push, pull_request]
jobs:
build:
runs-on: local
container:
image: ubuntu
steps:
- name: Install packages
run: |
apt-get update && apt-get install -y nodejs git python3 python3-pip rsync apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-ce-cli containerd.io
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Docker image
run: docker build --load -t qmk-builder .
- name: Tag Docker image
run: docker tag qmk-builder registry.home.dgvigil.dev/qmk-builder:v0.1
- name: Push Docker image
run: docker push registry.home.dgvigil.dev/qmk-builder:v0.1