Skip to content

Need a checkout

Need a checkout #62

Workflow file for this run

# Candace Savonen Jan 2025
name: Pull Request
on:
push:
branches: [ main ]
path:
- */Dockerfile

Check failure on line 9 in .github/workflows/merge.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/merge.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
jobs:
dockerfile-check:
name: Detect changed Dockerfile - ${{ matrix.config.dir }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {dir: base_ottr, name: 'jhudsl/base_ottr'}
- {dir: bioconductor, name: 'jhudsl/ottr_bioconductor'}
- {dir: ottrpal, name: 'jhudsl/ottrpal'}
- {dir: ottr_anvil_poll, name: 'jhudsl/anvil-poll-2024'}
- {dir: ottr_datatables, name: 'jhudsl/ottr_datatables'}
- {dir: ottr_website, name: 'jhudsl/ottr_website'}
- {dir: ottr_jupyter, name: 'jhudsl/ottr_jupyter'}
# NEW IMAGES HERE: #
####### - {dir: directory_path, name: 'name its called on dockerhub'}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get specific changed files
id: image_name
uses: tj-actions/[email protected]
with:
files: ${{ matrix.config.dir }}/*
- run: echo ${{steps.image_name.outputs.any_changed}}
- name: Docker build
if: ${{ steps.image_name.outputs.any_changed == 'true'}}
uses: ./.github/workflows/
with:
directory: ${{ matrix.config.dir }}
tag: ${{ matrix.config.name }}
dockerhubpush: false
token: ${{ secrets.GH_PAT }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}