mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-18 10:59:00 +02:00
test manual build
This commit is contained in:
96
.github/workflows/build-debian-image-dev.yml
vendored
96
.github/workflows/build-debian-image-dev.yml
vendored
@@ -52,49 +52,63 @@ 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
|
||||||
uses: docker/build-push-action@v4.0.0
|
env:
|
||||||
with:
|
DOCKER_BUILDKIT: 1
|
||||||
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: Inspect
|
|
||||||
run: |
|
run: |
|
||||||
docker image inspect buanet/iobroker:dev
|
# Build the Docker image for all platforms
|
||||||
|
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t ghcr.io/buanet/iobroker:dev .
|
||||||
|
|
||||||
|
# Create the Docker manifest for the image
|
||||||
|
docker manifest create ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-amd64 ghcr.io/buanet/iobroker:dev-arm64 ghcr.io/buanet/iobroker:dev-armv7
|
||||||
|
|
||||||
|
# Annotate the manifest with the architecture details
|
||||||
|
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-amd64 --os linux --arch amd64
|
||||||
|
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-arm64 --os linux --arch arm64
|
||||||
|
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-armv7 --os linux --arch arm --variant v7
|
||||||
|
|
||||||
|
# Push the Docker manifest to the registry
|
||||||
|
docker manifest push ghcr.io/buanet/iobroker:dev
|
||||||
|
|
||||||
|
# - 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
|
||||||
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user