Перенастроил анализатор докер контейнеров
Some checks failed
Lint / Run linters (push) Successful in 34s
Create and publish a Docker image / Publish image (push) Failing after 30s
Create and publish a Docker image / Deploy image (push) Has been skipped

This commit is contained in:
Sergey Karmanov 2024-06-21 09:26:56 +03:00
parent 42d485ec5e
commit c66f9633ce
2 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,22 @@
name: Dockle
on:
workflow_run:
workflows: ["Create and publish a Docker image"]
types:
- completed
jobs:
run-linters:
name: Run dockle
runs-on: ubuntu-latest
steps:
- name: Run dockle
uses: goodwithtech/dockle-action@main
with:
image: ${{ env.GITHUB_SERVER_URL }}/${{ gitea.repository }}
format: 'list'
exit-code: '1'
exit-level: 'warn'
ignore: 'CIS-DI-0001,CIS-DI-0010,DKL-DI-0006'

View File

@ -23,7 +23,7 @@ jobs:
id: meta id: meta
uses: https://github.com/docker/metadata-action@v4 uses: https://github.com/docker/metadata-action@v4
with: with:
images: ${{ env.GITHUB_SERVER_URL }}/${{ gitea.repository }} images: ${{ gitea.repository }}
- name: Build an image from Dockerfile - name: Build an image from Dockerfile
run: | run: |
cd ${{ env.CONTEXT }} && cd ${{ env.CONTEXT }} &&
@ -45,7 +45,7 @@ jobs:
password: ${{ secrets.TOKEN }} password: ${{ secrets.TOKEN }}
- name: Push - name: Push
run: | run: |
docker push '${{ env.DOCKER_METADATA_OUTPUT_TAGS }}' docker push '${{ env.GITHUB_SERVER_URL }}/${{ env.DOCKER_METADATA_OUTPUT_TAGS }}'
deploy: deploy:
needs: build-and-push-image needs: build-and-push-image
runs-on: ubuntu-latest runs-on: ubuntu-latest