mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-24 21:55:40 +02:00
test multiarch build
This commit is contained in:
85
.github/workflows/build-debian-image-dev.yml
vendored
85
.github/workflows/build-debian-image-dev.yml
vendored
@@ -33,13 +33,13 @@ jobs:
|
||||
sed -e "s/\${VERSION}/$VERSION-dev/" -e "s/\${DATI}/$DATI/" ./debian/node16/Dockerfile > ./debian/node16/Dockerfile.tmp
|
||||
mv -f ./debian/node16/Dockerfile.tmp ./debian/node16/Dockerfile
|
||||
|
||||
- name: Set up manifest tool
|
||||
run: |
|
||||
git clone https://github.com/estesp/manifest-tool
|
||||
cd manifest-tool && make binary
|
||||
# wget https://github.com/estesp/manifest-tool/releases/download/v1.0.3/manifest-tool-linux-amd64 -O manifest-tool
|
||||
chmod +x manifest-tool
|
||||
cd ..
|
||||
# - name: Set up manifest tool
|
||||
# run: |
|
||||
# git clone https://github.com/estesp/manifest-tool
|
||||
# cd manifest-tool && make binary
|
||||
# # wget https://github.com/estesp/manifest-tool/releases/download/v1.0.3/manifest-tool-linux-amd64 -O manifest-tool
|
||||
# chmod +x manifest-tool
|
||||
# cd ..
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2.1.0
|
||||
@@ -61,45 +61,56 @@ jobs:
|
||||
username: ${{ secrets.PACKAGES_USER }}
|
||||
password: ${{ secrets.PACKAGES_PASS }}
|
||||
|
||||
- name: Build Docker image (amd64)
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v3.3.0
|
||||
with:
|
||||
context: ./debian
|
||||
file: ./debian/node16/Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||
tags: |
|
||||
buanet/iobroker:dev-amd64,
|
||||
ghcr.io/buanet/iobroker:dev-amd64
|
||||
buanet/iobroker:dev
|
||||
ghcr.io/buanet/iobroker:dev
|
||||
|
||||
- name: Build Docker image (arm32v7)
|
||||
uses: docker/build-push-action@v3.3.0
|
||||
with:
|
||||
context: ./debian
|
||||
file: ./debian/node16/Dockerfile
|
||||
push: true
|
||||
platforms: linux/arm/v7
|
||||
tags: |
|
||||
buanet/iobroker:dev-arm32v7,
|
||||
ghcr.io/buanet/iobroker:dev-arm32v7
|
||||
# - name: Build Docker image (amd64)
|
||||
# uses: docker/build-push-action@v3.3.0
|
||||
# with:
|
||||
# context: ./debian
|
||||
# file: ./debian/node16/Dockerfile
|
||||
# push: true
|
||||
# platforms: linux/amd64
|
||||
# tags: |
|
||||
# buanet/iobroker:dev-amd64,
|
||||
# ghcr.io/buanet/iobroker:dev-amd64
|
||||
|
||||
- name: Build Docker image (arm64v8)
|
||||
uses: docker/build-push-action@v3.3.0
|
||||
with:
|
||||
context: ./debian
|
||||
file: ./debian/node16/Dockerfile
|
||||
push: true
|
||||
platforms: linux/arm64/v8
|
||||
tags: |
|
||||
buanet/iobroker:dev-arm64v8,
|
||||
ghcr.io/buanet/iobroker:dev-arm64v8
|
||||
# - name: Build Docker image (arm32v7)
|
||||
# uses: docker/build-push-action@v3.3.0
|
||||
# with:
|
||||
# context: ./debian
|
||||
# file: ./debian/node16/Dockerfile
|
||||
# push: true
|
||||
# platforms: linux/arm/v7
|
||||
# tags: |
|
||||
# buanet/iobroker:dev-arm32v7,
|
||||
# ghcr.io/buanet/iobroker:dev-arm32v7
|
||||
|
||||
- name: Create and push manifests
|
||||
run: |
|
||||
sed -e "s/\${VERSION}/dev/g" -e "s/\${DOCKERTAG}/dev/g" ./manifest.yml > manifest_dev.yaml
|
||||
./manifest-tool/manifest-tool --username ${{ secrets.DOCKER_USER }} --password ${{ secrets.DOCKER_PASS }} push from-spec manifest_dev.yaml
|
||||
sed -e "s/\${VERSION}/dev/g" -e "s/\${DOCKERTAG}/dev/g" ./manifest_ghcr.yml > manifest_ghcr_dev.yaml
|
||||
./manifest-tool/manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev.yaml
|
||||
# - name: Build Docker image (arm64v8)
|
||||
# uses: docker/build-push-action@v3.3.0
|
||||
# with:
|
||||
# context: ./debian
|
||||
# file: ./debian/node16/Dockerfile
|
||||
# push: true
|
||||
# platforms: linux/arm64/v8
|
||||
# tags: |
|
||||
# buanet/iobroker:dev-arm64v8,
|
||||
# ghcr.io/buanet/iobroker:dev-arm64v8
|
||||
|
||||
# - name: Create and push manifests
|
||||
# run: |
|
||||
# sed -e "s/\${VERSION}/dev/g" -e "s/\${DOCKERTAG}/dev/g" ./manifest.yml > manifest_dev.yaml
|
||||
# ./manifest-tool/manifest-tool --username ${{ secrets.DOCKER_USER }} --password ${{ secrets.DOCKER_PASS }} push from-spec manifest_dev.yaml
|
||||
# sed -e "s/\${VERSION}/dev/g" -e "s/\${DOCKERTAG}/dev/g" ./manifest_ghcr.yml > manifest_ghcr_dev.yaml
|
||||
# ./manifest-tool/manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev.yaml
|
||||
|
||||
- name: Delete untagged images from GitHub packages
|
||||
uses: actions/github-script@v6
|
||||
|
||||
Reference in New Issue
Block a user