Add dockers to Fast and Basic Builds #67
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DetectChanges | |
on: | |
pull_request: | |
paths: | |
- '.github/docker/*.Dockerfile' | |
push: | |
paths: | |
- '.github/docker/*.Dockerfile' | |
permissions: | |
contents: read | |
jobs: | |
DetectChanges: | |
runs-on: ubuntu-latest | |
outputs: | |
changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c #v46.0.5 | |
- name: List all changed files | |
env: | |
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
echo "Changed files: $ALL_CHANGED_FILES" | |
BuildDocker: | |
needs: DetectChanges | |
if: ${{ contains(join(needs.DetectChanges.outputs.changed_files, ' '), '.github/docker/') }} | |
uses: ./.github/workflows/reusable_dockers_build.yml | |
permissions: | |
contents: read | |
packages: write | |
secrets: inherit |