mirror of
https://github.com/qmk/qmk_cli.git
synced 2026-08-04 08:17:08 -04:00
Add infrastructure to build and push docker containers (#64)
* add infrastructure to build and push docker containers * make it part of the deploy workflow
This commit is contained in:
@@ -42,8 +42,18 @@ jobs:
|
||||
tags: true
|
||||
- name: Build and publish
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_USERNAME: qmk
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: |
|
||||
python setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v1.10.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
- name: Build and Push to Docker Hub
|
||||
uses: docker/build-push-action@v2.5.0
|
||||
with:
|
||||
push: true
|
||||
tags: qmkfm/qmk_cli:latest
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM qmkfm/base_container
|
||||
|
||||
# Install python packages
|
||||
RUN python3 -m pip install --upgrade pip setuptools wheel
|
||||
RUN python3 -m pip install --upgrade nose2 qmk
|
||||
|
||||
# Set the default location for qmk_firmware
|
||||
ENV QMK_HOME /qmk_firmware
|
||||
Reference in New Issue
Block a user