Kaniko new builder
This commit is contained in:
30
.github/workflows/docker-build-and-push.yaml
vendored
30
.github/workflows/docker-build-and-push.yaml
vendored
@@ -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
|
|
||||||
sudo apt-get install -y buildah
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build Image
|
|
||||||
id: build-image
|
|
||||||
uses: redhat-actions/buildah-build@v2
|
|
||||||
with:
|
with:
|
||||||
image: ${{ env.IMAGE_NAME }}
|
image: niccolon/raptor-deps-mlir0c2701f
|
||||||
tags: latest
|
cache: true
|
||||||
containerfiles: |
|
path: mlir0c2701f
|
||||||
./mlir0c2701f/Dockerfile
|
build_file: 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
|
username: niccolon
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
# Extra args to handle the specific environment
|
||||||
|
extra_args: "--snapshot-mode=redo --use-new-run"
|
||||||
|
|||||||
Reference in New Issue
Block a user