From 9987596580ab2d3f955194c843695f8e8ea973bd Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 28 Sep 2022 08:20:07 -0300 Subject: [PATCH] [Makefile] Added target to update the Github Actions - This moves the tags so they use changes in Dockerfiles --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index 16930d78..9d596866 100644 --- a/Makefile +++ b/Makefile @@ -182,4 +182,26 @@ pypi_upload: py_clean py_build py_clean: @rm -rf .pybuild build dist kibot.egg-info +# Update the Github Action +# /Dockerfile.* must be updated +update_gha: + cp Dockerfile_k5 Dockerfile + git commit -m "[CI/CD] Updating Github Action v2 for KiCad 5 latest" Dockerfile + git tag -f -a v2 -m "GitHub Action v2 for KiCad 5" + git push origin -f --tags + cp Dockerfile_dk5 Dockerfile + git commit -m "[CI/CD] Updating Github Action v2 for KiCad 5 development" Dockerfile + git tag -f -a v2_d -m "GitHub Action v2 for KiCad 5 (development)" + git tag -f -a v2_dk5 -m "GitHub Action v2 for KiCad 5 (development)" + git push origin -f --tags + cp Dockerfile_dk6 Dockerfile + git commit -m "[CI/CD] Updating Github Action v2 for KiCad 6 development" Dockerfile + git tag -f -a v2_dk6 -m "GitHub Action v2 for KiCad 6 (development)" + git push origin -f --tags + cp Dockerfile_k6 Dockerfile + git commit -m "[CI/CD] Updating Github Action v2 for KiCad 6 latest" Dockerfile + git tag -f -a v2_k6 -m "GitHub Action v2 for KiCad 6" + git push origin -f --tags + + .PHONY: deb deb_clean lint test test_local gen_ref doc py_build pypi_upload py_clean