preparing to clean registry
Some checks failed
Build Docker Image / Clean-Registry (push) Has been cancelled
Build Docker Image / Docker-Build (push) Has been cancelled

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-03 22:31:57 +01:00
parent 8d2f3ef88e
commit 219e5dbdec

View File

@@ -5,6 +5,7 @@ on:
branches:
- main
- dev
- workflow
jobs:
Docker-Build:
@@ -14,8 +15,7 @@ jobs:
uses: actions/checkout@v4
- name: Build docker image
run: |
docker build -t umbrella .
run: docker build -t umbrella .
- name: Store tag date
run: |
@@ -41,3 +41,9 @@ jobs:
TAG=$(cat /tmp/tag)
docker push ${{ secrets.REGISTRY_PATH }}/umbrella:${{ gitea.ref_name }}
docker push ${{ secrets.REGISTRY_PATH }}/umbrella:$TAG
Clean-Registry:
runs-on: ubuntu-latest
steps:
- name: Get tag list
run: curl -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" https://${{ secrets.REGISTRY_PATH }}/v2/umbrella/tags/list | jq -r ".tags[]"