[CI/CD] Added KiCad 6+7 (nightly) dev image generation
This commit is contained in:
parent
f91bb5c01f
commit
5c0f94f564
|
|
@ -263,6 +263,55 @@ jobs:
|
|||
ghcr.io/inti-cmnb/kicad6_auto_full:dev
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
push_to_registry_ng:
|
||||
name: Push Docker image to Docker Hub (KiCad 7)
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
# Don't create `dev` images using the `master`
|
||||
if: github.ref == 'refs/heads/dev'
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
setsoft/kicad_auto_test
|
||||
ghcr.io/inti-cmnb/kicad_auto_test
|
||||
ghcr.io/inti-cmnb/kicad7_auto_full
|
||||
tags: |
|
||||
type=raw,dev_k7
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: tools/dev_image_k7
|
||||
push: true
|
||||
tags: |
|
||||
setsoft/kicad_auto_test:dev_k7
|
||||
ghcr.io/inti-cmnb/kicad_auto_test:dev_k7
|
||||
# ghcr.io/inti-cmnb/kicad7_auto_full:dev
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
coveralls:
|
||||
name: Finish Coveralls
|
||||
needs: test
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
FROM setsoft/kicad_auto_test:nightly
|
||||
MAINTAINER Salvador E. Tropea <stropea@inti.gob.ar>
|
||||
LABEL Description="KiCad 6 with KiBot and other automation scripts"
|
||||
|
||||
RUN dpkg --remove kicost kibot && \
|
||||
apt-get update && \
|
||||
curl https://codeload.github.com/INTI-CMNB/KiBot/zip/refs/heads/dev --output pp.zip && \
|
||||
unzip pp.zip && \
|
||||
pip3 install --no-compile KiBot-dev/ && \
|
||||
rm -rf KiBot-dev pp.zip && \
|
||||
curl https://codeload.github.com/hildogjr/KiCost/zip/refs/heads/master --output pp.zip && \
|
||||
unzip pp.zip && \
|
||||
pip3 install KiCost-master/ && \
|
||||
rm -rf KiCost-master pp.zip && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# kidiff depends on KiAuto
|
||||
# dpkg --remove kiauto && \
|
||||
# curl https://codeload.github.com/INTI-CMNB/KiAuto/zip/refs/heads/master --output pp.zip && \
|
||||
# unzip pp.zip && \
|
||||
# pip3 install KiAuto-master/ && \
|
||||
# rm -rf KiAuto-master/ pp.zip && \
|
||||
Loading…
Reference in New Issue