Add .gitea/workflows/*.yaml
This commit is contained in:
@@ -71,7 +71,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: /tmp/image.tar
|
path: /tmp/image.tar
|
||||||
retention-days: 2
|
retention-days: 1
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: trivy-results
|
name: trivy-results
|
||||||
path: /tmp/trivy-results.json
|
path: /tmp/trivy-results.json
|
||||||
retention-days: 2
|
retention-days: 1
|
||||||
|
|
||||||
publish-image:
|
publish-image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@@ -144,3 +144,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker image ls -a
|
docker image ls -a
|
||||||
docker push ${{ inputs.image-name }}:${{ inputs.image-tag }}
|
docker push ${{ inputs.image-name }}:${{ inputs.image-tag }}
|
||||||
|
- name: Clean Docker image on Host
|
||||||
|
run: |
|
||||||
|
docker rmi ${{ inputs.image-name }}:${{ inputs.image-tag }}
|
||||||
|
docker image ls -a
|
||||||
Reference in New Issue
Block a user