Skip to content

Enable workflow for pull requests in dockerimage.yml #469

Enable workflow for pull requests in dockerimage.yml

Enable workflow for pull requests in dockerimage.yml #469

Workflow file for this run

name: Build and Publish Docker Images
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- '.gitignore'
- 'README.md'
- '*/*/README.md'
pull_request:
branches:
- master
paths-ignore:
- '.github/**'
- '.gitignore'
- 'README.md'
- '*/*/README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git fetch --prune --unshallow
- name: get changed files
id: getfile
run: |
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | xargs)" >> "$GITHUB_ENV"
- name: Build, Tag, Publish Docker
uses: ./.github/actions/build-image
with:
organization: jessemarks
changed_files: ${{ env.files }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}