From a14f4185802f29ea07bafc09b176e23a088643c9 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Fri, 22 Mar 2024 08:46:00 +0100 Subject: [PATCH] Try with Buildah --- .github/workflows/build.yml | 47 ++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b441c38..28159e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,24 +12,49 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Kaniko build and push - uses: aevea/action-kaniko@master + # BUILDAH + - 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 + # KANIKO + # - name: Kaniko build and push + # uses: aevea/action-kaniko@master + # 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: | + # ACCESS_TOKEN_USR=ncaron + # ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d + + + # DOCKER # - name: Install Docker # run: | # apt-get update