From d1ef72659461db1b1222ad4d5e210d3c9b50f537 Mon Sep 17 00:00:00 2001 From: buanet Date: Tue, 11 Apr 2023 23:45:24 +0200 Subject: [PATCH] testing with metadata --- .github/workflows/build-debian-image-dev.yml | 21 ++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-debian-image-dev.yml b/.github/workflows/build-debian-image-dev.yml index e5ba310..90a7818 100644 --- a/.github/workflows/build-debian-image-dev.yml +++ b/.github/workflows/build-debian-image-dev.yml @@ -52,6 +52,16 @@ jobs: username: ${{ secrets.PACKAGES_USER }} password: ${{ secrets.PACKAGES_PASS }} + - name: Extract metadata (tags, labels) + id: metadata + uses: docker/metadata-action@v4.3.0 + with: + images: | + buanet/iobroker + ghcr.io/buanet/iobroker + tags: | + type=raw,value=dev + - name: Build and push Docker image uses: docker/build-push-action@v4.0.0 with: @@ -59,10 +69,13 @@ jobs: file: ./debian/node18/Dockerfile push: true platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 - tags: | - buanet/iobroker:dev, - ghcr.io/buanet/iobroker:dev - provenance: false + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }} + # tags: | + # buanet/iobroker:dev, + # ghcr.io/buanet/iobroker:dev + #provenance: false + #outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Officical Docker image for ioBroker smarthome software (https://www.iobroker.net) - name: Delete untagged images from GitHub Container Registry uses: actions/github-script@v6.4.1