From 225de6de7eeec5e4d3dbeeefe4377b27dd791137 Mon Sep 17 00:00:00 2001 From: GilbN <24592972+GilbN@users.noreply.github.com> Date: Mon, 12 Apr 2021 16:02:37 +0200 Subject: [PATCH] Delete auto-build.yml --- .github/workflows/auto-build.yml | 40 -------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/auto-build.yml diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml deleted file mode 100644 index 9b98512c..00000000 --- a/.github/workflows/auto-build.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: publishmultipledockerimages -on: - push: - branches: [ docker-mods ] - paths: - - '**/Dockerfile' - -jobs: - job1: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: get changed files - id: getfile - run: | - echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }}| xargs)" - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GH_PAT }} - - - name: echo the changed files and build&push - run: | - for i in ${{ steps.getfile.outputs.files }} - do - directory="$( echo $i | cut -d'/' -f1 -s )" - if [ -z "$directory" ]; then - continue # Skip root dir - elif [ "$i" == *.md ]; then - continue # Skip markdown files - docker build . --file $i --tag theme.park:$directory - docker push ghcr.io/gilbn/theme.park:$directory - done