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" diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 781545d4..918a5a31 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 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 @@ -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_${{ steps.branch.outputs.GHR }} cache-from: type=registry,ref=${{ github.repository }}:buildcache cache-to: type=registry,ref=${{ github.repository }}:buildcache,mode=max