.gitea/workflows/release.yml aktualisiert
All checks were successful
Build nginx fpm 8.4 image / Build-and-release-image (push) Successful in 1m1s
All checks were successful
Build nginx fpm 8.4 image / Build-and-release-image (push) Successful in 1m1s
This commit is contained in:
@@ -22,12 +22,25 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log into registry
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.REGISTRY_URL }}
|
username: ${{ vars.DOCKERHUB_USER }}
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
password: ${{ vars.DOCKERHUB_TOKEN }}
|
||||||
password: ${{ secrets.REGISTRY_PASS }}
|
|
||||||
|
- name: Log into CS registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.CS_REGISTRY_URL }}
|
||||||
|
username: ${{ vars.CS_REGISTRY_USER }}
|
||||||
|
password: ${{ vars.CS_REGISTRY_PASS }}
|
||||||
|
|
||||||
|
- name: Log into local registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.LOCAL_REGISTRY_URL }}
|
||||||
|
username: ${{ vars.LOCAL_REGISTRY_USER }}
|
||||||
|
password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
@@ -40,19 +53,19 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
tags: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}:latest
|
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Scan image
|
- name: Scan image
|
||||||
uses: anchore/scan-action@v6
|
uses: anchore/scan-action@v6
|
||||||
id: scan
|
id: scan
|
||||||
with:
|
with:
|
||||||
image: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}:latest
|
image: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
||||||
fail-build: false
|
fail-build: false
|
||||||
output-format: table
|
output-format: table
|
||||||
severity-cutoff: critical
|
severity-cutoff: critical
|
||||||
registry-username: ${{ secrets.REGISTRY_USER }}
|
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
|
||||||
registry-password: ${{ secrets.REGISTRY_PASS }}
|
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
||||||
grype-version: 'v0.90.0'
|
grype-version: 'v0.90.0'
|
||||||
|
|
||||||
- name: Inspect file
|
- name: Inspect file
|
||||||
@@ -63,4 +76,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: scan-result
|
name: scan-result
|
||||||
path: ${{ steps.scan.outputs.table }}
|
path: ${{ steps.scan.outputs.table }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user