From 7ad30a24cf67aec823d3b519bb1b6413031972ab Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Fri, 22 Mar 2024 09:27:04 +0100 Subject: [PATCH] Try with Buildah --- .github/workflows/build.yml | 72 ++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c405901..f963443 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,53 +14,53 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - # BUILDAH - - name: Install Buildah - run: | - apt-get update - apt-get install -y buildah podman - export BUILDAH_ISOLATION=chroot - - name: Buildah Action - uses: redhat-actions/buildah-build@v2 - id: build-image + KANIKO + - name: Kaniko build and push + uses: aevea/action-kaniko@master with: - image: coopgo-platform/mobility-accounts - tags: test - containerfiles: | - ./Dockerfile - build-args: | - ACCESS_TOKEN_USR=ncaron - ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d - envs: | - BUILDAH_ISOLATION=chroot - - - name: Push To Registry - id: push-to-registry - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} + build_file: Dockerfile registry: git.coopgo.io username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d + image: coopgo-platform/mobility-accounts + tag: latest + cache: true + cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache + extra-args: | + ACCESS_TOKEN_USR=ncaron + ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d - # KANIKO - # - name: Kaniko build and push - # uses: aevea/action-kaniko@master + + + # BUILDAH + # - name: Install Buildah + # run: | + # apt-get update + # apt-get install -y buildah podman + # export BUILDAH_ISOLATION=chroot + + # - name: Buildah Action + # uses: redhat-actions/buildah-build@v2 + # id: build-image # with: - # build_file: Dockerfile - # registry: git.coopgo.io - # username: ncaron - # password: 6744954b4a3a43422e62e8d110f90de527ce094d # image: coopgo-platform/mobility-accounts - # tag: latest - # cache: true - # cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache - # extra-args: | + # tags: test + # containerfiles: | + # ./Dockerfile + # build-args: | # ACCESS_TOKEN_USR=ncaron # ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d + # - name: Push To Registry + # id: push-to-registry + # uses: redhat-actions/push-to-registry@v2 + # with: + # image: ${{ steps.build-image.outputs.image }} + # tags: ${{ steps.build-image.outputs.tags }} + # registry: git.coopgo.io + # username: ncaron + # password: 6744954b4a3a43422e62e8d110f90de527ce094d # DOCKER # - name: Install Docker