Перенастроил анализатор докер контейнеров
This commit is contained in:
parent
42d485ec5e
commit
4ea6543545
22
.gitea/workflows/Dockle.yml
Normal file
22
.gitea/workflows/Dockle.yml
Normal 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'
|
@ -16,14 +16,14 @@ jobs:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: https://github.com/docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ env.GITHUB_SERVER_URL }}/${{ gitea.repository }}
|
||||
images: ${{ vars.SERVER_DOMAIN }}/${{ gitea.repository }}
|
||||
- name: Build an image from Dockerfile
|
||||
run: |
|
||||
cd ${{ env.CONTEXT }} &&
|
||||
@ -40,12 +40,13 @@ jobs:
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ${{ env.GITHUB_SERVER_URL }}
|
||||
registry: ${{ vars.SERVER_DOMAIN }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
- name: Push
|
||||
run: |
|
||||
docker push '${{ env.DOCKER_METADATA_OUTPUT_TAGS }}'
|
||||
|
||||
deploy:
|
||||
needs: build-and-push-image
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user