mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-29 11:13:19 +00:00
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:
parent
2818f0906e
commit
9b96b34445
46
.github/workflows/reusable_build_docker.yaml
vendored
46
.github/workflows/reusable_build_docker.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user