Browse Source

removed paths

pull/240/head
Marius 4 years ago
parent
commit
61b4550d4c
  1. 8
      .github/workflows/auto-build.yml

8
.github/workflows/auto-build.yml

@ -2,29 +2,25 @@ name: publishmultipledockerimages
on: on:
push: push:
branches: [ docker-mods ] branches: [ docker-mods ]
paths:
- '**/Dockerfile'
jobs: jobs:
job1: build_mod:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: get changed files - name: get changed files
id: getfile id: getfile
run: | run: |
echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }}| xargs)" echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }}| xargs)"
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }} password: ${{ secrets.GH_PAT }}
- name: echo the changed files and build&push - name: echo the changed files and build&push
run: | run: |
for i in ${{ steps.getfile.outputs.files }} for i in ${{ steps.getfile.outputs.files }}

Loading…
Cancel
Save