Browse Source

testing

pull/174/head
gilbN 4 years ago
parent
commit
fc508a60ec
  1. 14
      .github/workflows/auto-build.yml

14
.github/workflows/auto-build.yml

@ -13,12 +13,21 @@ jobs:
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: 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: | run: |
for i in ${{ steps.getfile.outputs.files }} for i in ${{ steps.getfile.outputs.files }}
do do
@ -28,4 +37,5 @@ jobs:
elif [ "$i" == *.md ]; then elif [ "$i" == *.md ]; then
continue # Skip markdown files continue # Skip markdown files
docker build . --file $i --tag theme.park:$directory docker build . --file $i --tag theme.park:$directory
done docker push ghcr.io/gilbn/theme.park:$directory
done
Loading…
Cancel
Save