From fc508a60ece3f4ad8379a3bcdc23d7d9ab48ba0b Mon Sep 17 00:00:00 2001 From: gilbN <24592972+gilbN@users.noreply.github.com> Date: Mon, 12 Apr 2021 01:16:40 +0200 Subject: [PATCH] testing --- .github/workflows/auto-build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 8bc5b72d..ba421daa 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -13,12 +13,21 @@ jobs: 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: echo the changed files + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.PERSONAL_TOKEN }} + + - name: echo the changed files and build&push + uses: docker/build-push-action@v2 run: | for i in ${{ steps.getfile.outputs.files }} do @@ -28,4 +37,5 @@ jobs: elif [ "$i" == *.md ]; then continue # Skip markdown files docker build . --file $i --tag theme.park:$directory - done + docker push ghcr.io/gilbn/theme.park:$directory + done \ No newline at end of file