revert to old method with changes

This commit is contained in:
Daan Selen
2025-11-27 23:44:55 +01:00
parent f48676472c
commit 8a2d140fa5
2 changed files with 10 additions and 55 deletions

View File

@@ -23,14 +23,6 @@ jobs:
packages: write
strategy:
fail-fast: false
matrix:
variant:
- name: amd64
arch: linux/amd64
- name: arm64
arch: linux/arm64
- name: armv7
arch: linux/arm/v7
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -52,7 +44,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.variant.arch }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -84,54 +76,10 @@ jobs:
with:
context: .
file: ./docker/Dockerfile
push: false
outputs: type=docker,dest=/dist/image-${{ matrix.variant.name }}.tar
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.variant.arch }}
- name: Upload docker image as artifact
uses: actions/upload-artifact@v5
with:
name: image-${{ matrix.variant.name }}
path: /dist/image-${{ matrix.variant.name }}.tar
docker_merge:
runs-on: ubuntu-latest
# needs: docker_build
steps:
- name: Make workspace directory
run: mkdir -p /workspace
- name: Download all artifacts
uses: actions/download-artifact@v5
with:
path: /workspace
- name: Install dependencies
run: |
mv /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/microsoft-prod.list.disabled
apt-get update && apt-get install -y unzip tree
- name: List workspace contents
run: |
cd /workspace
echo "Extracting"
for zip in $(find ./ -type f -name "image-*.zip"); do
echo "Found zip: $zip";
unzip $zip
done
ls -lah && tree
echo "Loading"
for tar in $(find ./ -type f -name "image-*.tar"); do
echo "Found zip: $tar";
docker load -i $tar
done
docker images
platforms: linux/amd64,linux/arm64,linux/arm/v7
docker_scan:
if: ${{ github.event_name != 'pull_request' }}