Try with Buildah

This commit is contained in:
Arnaud Delcasse 2024-03-22 09:27:04 +01:00
parent 4ce7c8d00f
commit 7ad30a24cf
1 changed files with 36 additions and 36 deletions

View File

@ -14,53 +14,53 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 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 KANIKO
uses: redhat-actions/buildah-build@v2 - name: Kaniko build and push
id: build-image uses: aevea/action-kaniko@master
with: with:
image: coopgo-platform/mobility-accounts build_file: Dockerfile
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 }}
registry: git.coopgo.io registry: git.coopgo.io
username: ncaron username: ncaron
password: 6744954b4a3a43422e62e8d110f90de527ce094d 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: # with:
# build_file: Dockerfile
# registry: git.coopgo.io
# username: ncaron
# password: 6744954b4a3a43422e62e8d110f90de527ce094d
# image: coopgo-platform/mobility-accounts # image: coopgo-platform/mobility-accounts
# tag: latest # tags: test
# cache: true # containerfiles: |
# cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache # ./Dockerfile
# extra-args: | # build-args: |
# ACCESS_TOKEN_USR=ncaron # ACCESS_TOKEN_USR=ncaron
# ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d # 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 # DOCKER
# - name: Install Docker # - name: Install Docker