refactor: streamline build process by replacing Kaniko with Buildah for image builds
Build and push / check and test (push) Successful in 7s
Build and push / build_and_push (map[name:metabase path:metabase]) (push) Failing after 7s
Build and push / build_and_push (map[name:postgres-backup path:postgres-backup]) (push) Failing after 4s
Build and push / build_and_push (map[name:pyweb path:pyweb]) (push) Failing after 4s
Build and push / build_and_push (map[name:shellcheck path:shellcheck]) (push) Failing after 4s
Build and push / build_and_push (map[name:vaultwarden-backup path:vaultwarden-backup]) (push) Has been cancelled
Build and push / check and test (push) Successful in 7s
Build and push / build_and_push (map[name:metabase path:metabase]) (push) Failing after 7s
Build and push / build_and_push (map[name:postgres-backup path:postgres-backup]) (push) Failing after 4s
Build and push / build_and_push (map[name:pyweb path:pyweb]) (push) Failing after 4s
Build and push / build_and_push (map[name:shellcheck path:shellcheck]) (push) Failing after 4s
Build and push / build_and_push (map[name:vaultwarden-backup path:vaultwarden-backup]) (push) Has been cancelled
Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
@@ -19,61 +19,38 @@ jobs:
|
|||||||
run: ./shellcheck.sh
|
run: ./shellcheck.sh
|
||||||
buildpush:
|
buildpush:
|
||||||
name: build_and_push
|
name: build_and_push
|
||||||
needs: [tests_shellcheck]
|
needs: [test_shellcheck]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image:
|
||||||
|
- name: postgres-backup
|
||||||
|
path: postgres-backup
|
||||||
|
- name: pyweb
|
||||||
|
path: pyweb
|
||||||
|
- name: shellcheck
|
||||||
|
path: shellcheck
|
||||||
|
- name: vaultwarden-backup
|
||||||
|
path: vaultwarden-backup
|
||||||
|
- name: metabase
|
||||||
|
path: metabase
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Kaniko build postgres-backup
|
|
||||||
uses: aevea/action-kaniko@master
|
|
||||||
with:
|
|
||||||
image: uleenucks/postgres-backup
|
|
||||||
tag: latest
|
|
||||||
path: postgres-backup
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
||||||
cache: false
|
|
||||||
extra_args: --cleanup
|
|
||||||
|
|
||||||
- name: Kaniko build pyweb
|
- name: Build ${{ matrix.image.name }} image
|
||||||
uses: aevea/action-kaniko@master
|
id: build
|
||||||
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
image: uleenucks/pyweb
|
image: uleenucks/${{ matrix.image.name }}
|
||||||
tag: latest
|
tags: latest
|
||||||
path: pyweb
|
containerfiles: |
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
${{ matrix.image.path }}/Dockerfile
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
||||||
cache: false
|
|
||||||
extra_args: --cleanup
|
|
||||||
|
|
||||||
- name: Kaniko build shellcheck
|
- name: Push ${{ matrix.image.name }} to Docker Hub
|
||||||
uses: aevea/action-kaniko@master
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
image: uleenucks/shellcheck
|
image: ${{ steps.build.outputs.image }}
|
||||||
tag: latest
|
tags: ${{ steps.build.outputs.tags }}
|
||||||
path: shellcheck
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
cache: false
|
|
||||||
extra_args: --cleanup
|
|
||||||
|
|
||||||
- name: Kaniko build vaultwarden-backup
|
|
||||||
uses: aevea/action-kaniko@master
|
|
||||||
with:
|
|
||||||
image: uleenucks/vaultwarden-backup
|
|
||||||
tag: latest
|
|
||||||
path: vaultwarden-backup
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
||||||
cache: false
|
|
||||||
extra_args: --cleanup
|
|
||||||
|
|
||||||
- name: Kaniko build metabase
|
|
||||||
uses: aevea/action-kaniko@master
|
|
||||||
with:
|
|
||||||
image: uleenucks/metabase
|
|
||||||
tag: latest
|
|
||||||
path: metabase
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
||||||
cache: false
|
|
||||||
extra_args: --cleanup
|
|
||||||
|
|||||||
Reference in New Issue
Block a user