From 190b4b145b84c10755078034d81b2b835d18faf8 Mon Sep 17 00:00:00 2001 From: Joshua Seals <117867292+joshua-seals@users.noreply.github.com> Date: Mon, 14 Aug 2023 08:16:46 -0400 Subject: [PATCH 1/3] Update dependabot.yml Update only monthly --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3ea2695d..7fc18e39 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,7 +11,7 @@ updates: - package-ecosystem: "pip" directory: "/" schedule: - interval: "weekly" + interval: "monthly" reviewers: - "joshua-seals" - "Hoid" From 70a08e33f548fb690d911d1530b2536e1cf155e5 Mon Sep 17 00:00:00 2001 From: Joshua Seals <117867292+joshua-seals@users.noreply.github.com> Date: Fri, 1 Sep 2023 12:24:22 -0400 Subject: [PATCH 2/3] Update code-checks.yml Changes to the tag parsing to support prs --- .github/workflows/code-checks.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 781545d4..ef51e411 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -3,8 +3,8 @@ # - flake8-linter # - image-build-test # -# This workflow only validates images can build -# but does not push images to any repository. +# This workflow will build a test image for everything but develop +# and main branches. # # The build-push-dev-image and build-push-release workflows # handle the develop and release image storage respectively. @@ -96,7 +96,12 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} logout: true - + - name: Parse Github Reference Name + id: branch + run: | + REF=${{ github.ref_name }} + echo "GHR=${REF%/*}" >> $GITHUB_OUTPUT + # Notes on Cache: # https://docs.docker.com/build/ci/github-actions/examples/#inline-cache @@ -106,6 +111,6 @@ jobs: context: . push: true tags: | - ${{ github.repository }}:test_image_${{ github.ref_name }} + ${{ github.repository }}:test_image_${{ steps.branch.outputs.GHR }} cache-from: type=registry,ref=${{ github.repository }}:buildcache cache-to: type=registry,ref=${{ github.repository }}:buildcache,mode=max From 9a5242fbed1713b103694e8af3caf9156e59ef77 Mon Sep 17 00:00:00 2001 From: Joshua Seals <117867292+joshua-seals@users.noreply.github.com> Date: Fri, 1 Sep 2023 12:34:41 -0400 Subject: [PATCH 3/3] Update code-checks.yml Uncomment github-ignore section and rename test_branch --- .github/workflows/code-checks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index ef51e411..918a5a31 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -4,7 +4,7 @@ # - image-build-test # # This workflow will build a test image for everything but develop -# and main branches. +# and main branches. The tag will be test_{your_branch_name} # # The build-push-dev-image and build-push-release workflows # handle the develop and release image storage respectively. @@ -21,8 +21,8 @@ on: paths-ignore: - README.md - .old_cicd/* - # - .github/* - # - .github/workflows/* + - .github/* + - .github/workflows/* - LICENSE - .gitignore - .dockerignore @@ -111,6 +111,6 @@ jobs: context: . push: true tags: | - ${{ github.repository }}:test_image_${{ steps.branch.outputs.GHR }} + ${{ github.repository }}:test_${{ steps.branch.outputs.GHR }} cache-from: type=registry,ref=${{ github.repository }}:buildcache cache-to: type=registry,ref=${{ github.repository }}:buildcache,mode=max