Kaniko new builder

This commit is contained in:
2026-03-12 09:26:09 +00:00
parent 61ea6ec5ac
commit e6c5cff3a9

View File

@@ -29,28 +29,14 @@ jobs:
https://chef.heaplab.deib.polimi.it/git/${GITHUB_REPOSITORY}.git \ https://chef.heaplab.deib.polimi.it/git/${GITHUB_REPOSITORY}.git \
${GITHUB_WORKSPACE} ${GITHUB_WORKSPACE}
- name: Install buildah - name: Build and Push with Kaniko
run: | uses: aevea/action-kaniko@v0.10.0 # High-level wrapper for Kaniko
sudo apt-get update with:
sudo apt-get install -y buildah image: niccolon/raptor-deps-mlir0c2701f
cache: true
path: mlir0c2701f
- name: Build Image build_file: mlir0c2701f/Dockerfile
id: build-image username: niccolon
uses: redhat-actions/buildah-build@v2 password: ${{ secrets.DOCKERHUB_TOKEN }}
with: # Extra args to handle the specific environment
image: ${{ env.IMAGE_NAME }} extra_args: "--snapshot-mode=redo --use-new-run"
tags: latest
containerfiles: |
./mlir0c2701f/Dockerfile
context: ./mlir0c2701f
- name: Push Image
if: github.ref == 'refs/heads/main'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.REGISTRY }}
username: niccolon
password: ${{ secrets.DOCKERHUB_TOKEN }}