revert changes

This commit is contained in:
buanet
2023-04-12 15:12:37 +02:00
parent 9e8f8bfd1e
commit c79d4a9fde

View File

@@ -52,60 +52,45 @@ jobs:
username: ${{ secrets.PACKAGES_USER }} username: ${{ secrets.PACKAGES_USER }}
password: ${{ secrets.PACKAGES_PASS }} 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
labels: |
org.opencontainers.image.title=Official ioBroker Docker Image
org.opencontainers.image.description=Official Docker image for ioBroker smarthome software (https://www.iobroker.net)
org.opencontainers.image.documentation=https://github.com/buanet/ioBroker.docker#readme
org.opencontainers.image.authors=André Germann <info@buanet.de>
org.opencontainers.image.url=https://github.com/buanet/ioBroker.docker
org.opencontainers.image.source=https://github.com/buanet/ioBroker.docker
org.opencontainers.image.base.name=docker.io/library/debian:bullseye-slim
org.opencontainers.image.version=${{ env.VERSION }}
org.opencontainers.image.created=${{ env.DATI }}
- name: Build and push Docker image - name: Build and push Docker image
env: uses: docker/build-push-action@v4.0.0
DOCKER_BUILDKIT: 1 with:
run: | context: ./debian
# Build the Docker image for all platforms file: ./debian/node18/Dockerfile
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t ghcr.io/buanet/iobroker:dev -f ./debian/node18/Dockerfile ./debian push: true
platforms: |
# Build manifest for dev-amd64 linux/amd64
echo $(docker manifest inspect ghcr.io/buanet/iobroker:dev) | jq -r '.manifests[] | select(.platform.architecture == "amd64") | .digest' linux/arm/v7
docker manifest create ghcr.io/buanet/iobroker:dev-amd64 \ linux/arm64/v8
ghcr.io/buanet/iobroker@$(echo $(docker manifest inspect ghcr.io/buanet/iobroker:dev) | jq -r '.manifests[] | select(.platform.architecture == "amd64") | .digest') tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
# Push the Docker manifest to the registry
docker manifest push ghcr.io/buanet/iobroker:dev-amd64
# - name: Extract metadata (tags, labels)
# id: metadata
# uses: docker/metadata-action@v4.3.0
# with:
# images: |
# buanet/iobroker
# ghcr.io/buanet/iobroker
# tags: | # tags: |
# type=raw,value=dev # buanet/iobroker:dev,
# labels: | # ghcr.io/buanet/iobroker:dev
# org.opencontainers.image.title=Official ioBroker Docker Image provenance: false
# org.opencontainers.image.description=Official Docker image for ioBroker smarthome software (https://www.iobroker.net) outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Official Docker image for ioBroker smarthome software (https://www.iobroker.net)
# org.opencontainers.image.documentation=https://github.com/buanet/ioBroker.docker#readme cache-from: type=gha
# org.opencontainers.image.authors=André Germann <info@buanet.de> cache-to: type=gha,mode=max
# org.opencontainers.image.url=https://github.com/buanet/ioBroker.docker
# org.opencontainers.image.source=https://github.com/buanet/ioBroker.docker
# org.opencontainers.image.base.name=docker.io/library/debian:bullseye-slim
# org.opencontainers.image.version=${{ env.VERSION }}
# org.opencontainers.image.created=${{ env.DATI }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v4.0.0
# with:
# context: ./debian
# file: ./debian/node18/Dockerfile
# push: true
# platforms: |
# linux/amd64
# linux/arm/v7
# linux/arm64/v8
# 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=Official Docker image for ioBroker smarthome software (https://www.iobroker.net)
# cache-from: type=gha
# cache-to: type=gha,mode=max
- name: Delete untagged images from GitHub Container Registry - name: Delete untagged images from GitHub Container Registry
uses: actions/github-script@v6.4.1 uses: actions/github-script@v6.4.1
@@ -125,4 +110,4 @@ jobs:
env: env:
OWNER: buanet OWNER: buanet
PACKAGE_NAME: iobroker PACKAGE_NAME: iobroker
PER_PAGE: 100 PER_PAGE: 100