fix(ci): use normal docker to build docker images, instead of buildx.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-05-19 14:17:03 +02:00 committed by poiana
parent 2818f0906e
commit 9b96b34445

View File

@ -36,26 +36,22 @@ jobs:
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Build no-driver image - name: Build no-driver image
uses: docker/build-push-action@v3 run: |
with: cd ${{ github.workspace }}/docker/no-driver/
context: ${{ github.workspace }}/docker/no-driver/ docker build -t docker.io/falcosecurity/falco-no-driver:${{ inputs.arch }}-${{ inputs.tag }} \
build-args: | --build-arg VERSION_BUCKET=bin${{ inputs.bucket_suffix }}
VERSION_BUCKET=bin${{ inputs.bucket_suffix }} --build-arg FALCO_VERSION=${{ inputs.version }} \
FALCO_VERSION=${{ inputs.version }} --output type=docker,dest=/tmp/falco-no-driver-${{ inputs.arch }}.tar \
tags: | .
docker.io/falcosecurity/falco-no-driver:${{ inputs.arch }}-${{ inputs.tag }}
outputs: type=docker,dest=/tmp/falco-no-driver-${{ inputs.arch }}.tar
- name: Build falco image - name: Build falco image
uses: docker/build-push-action@v3 run: |
with: cd ${{ github.workspace }}/docker/falco/
context: ${{ github.workspace }}/docker/falco/ docker build -t docker.io/falcosecurity/falco:${{ inputs.arch }}-${{ inputs.tag }} \
build-args: | --build-arg VERSION_BUCKET=deb${{ inputs.bucket_suffix }}
VERSION_BUCKET=deb${{ inputs.bucket_suffix }} --build-arg FALCO_VERSION=${{ inputs.version }} \
FALCO_VERSION=${{ inputs.version }} --output type=docker,dest=/tmp/falco-${{ inputs.arch }}.tar \
tags: | .
docker.io/falcosecurity/falco:${{ inputs.arch }}-${{ inputs.tag }}
outputs: type=docker,dest=/tmp/falco-${{ inputs.arch }}.tar
# The falcosecurity/falco image is required for the driver-loader image, so we need to load it # The falcosecurity/falco image is required for the driver-loader image, so we need to load it
- name: Load the falcosecurity/falco image - name: Load the falcosecurity/falco image
@ -63,14 +59,12 @@ jobs:
docker load --input /tmp/falco-${{ inputs.arch }}.tar docker load --input /tmp/falco-${{ inputs.arch }}.tar
- name: Build falco-driver-loader image - name: Build falco-driver-loader image
uses: docker/build-push-action@v3 run: |
with: cd ${{ github.workspace }}/docker/driver-loader/
context: ${{ github.workspace }}/docker/driver-loader/ docker build -t docker.io/falcosecurity/falco-driver-loader:${{ inputs.arch }}-${{ inputs.tag }} \
build-args: | --build-arg FALCO_IMAGE_TAG=${{ inputs.arch }}-${{ inputs.tag }}
FALCO_IMAGE_TAG=${{ inputs.arch }}-${{ inputs.tag }} --output type=docker,dest=/tmp/falco-driver-loader-${{ inputs.arch }}.tar \
tags: | .
docker.io/falcosecurity/falco-driver-loader:${{ inputs.arch }}-${{ inputs.tag }}
outputs: type=docker,dest=/tmp/falco-driver-loader-${{ inputs.arch }}.tar
- name: Upload images tarballs - name: Upload images tarballs
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3