Try with Buildah
This commit is contained in:
parent
4ce7c8d00f
commit
7ad30a24cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue