forked from Job79/devcontainer
ci: move ci to job v2
This commit is contained in:
@@ -1,48 +1,40 @@
|
||||
name: Build optional dev containers
|
||||
on:
|
||||
workflow_dispatch: # This makes the workflow manually triggered
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
fedora-build:
|
||||
runs-on: job-latest
|
||||
runs-on: job-v2
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
container: [rider, android]
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
- name: Log in
|
||||
uses: redhat-actions/podman-login@v1
|
||||
with:
|
||||
registry: git.plabble.org
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push Rider container
|
||||
uses: docker/build-push-action@v5
|
||||
- name: Build ${{ matrix.container }} container
|
||||
id: build_image
|
||||
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
|
||||
with:
|
||||
context: ./containers/rider
|
||||
file: ./containers/rider/Containerfile
|
||||
push: true
|
||||
tags: git.plabble.org/maurice/rider:${{ github.ref_name }}
|
||||
image: maurice/${{ matrix.container }}
|
||||
tags: ${{ github.ref_name }}
|
||||
context: ./containers/${{ matrix.container }}
|
||||
containerfiles: ./containers/${{ matrix.container }}/Containerfile
|
||||
build-args: TAG=${{ github.ref_name }}
|
||||
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||
|
||||
- name: Build and push Android Studio container
|
||||
uses: docker/build-push-action@v5
|
||||
- name: Push ${{ matrix.container }} container
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
context: ./containers/android
|
||||
file: ./containers/android/Containerfile
|
||||
push: true
|
||||
tags: git.plabble.org/maurice/android:${{ github.ref_name }}
|
||||
build-args: TAG=${{ github.ref_name }}
|
||||
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||
|
||||
# - name: Build and push Flutter container
|
||||
# uses: docker/build-push-action@v5
|
||||
# with:
|
||||
# context: ./containers/flutter
|
||||
# file: ./containers/flutter/Containerfile
|
||||
# push: true
|
||||
# tags: git.plabble.org/maurice/flutter:${{ github.ref_name }}
|
||||
# build-args: TAG=${{ github.ref_name }}
|
||||
# outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||
image: ${{ steps.build_image.outputs.image }}
|
||||
tags: ${{ steps.build_image.outputs.tags }}
|
||||
registry: git.plabble.org
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
extra-args: |
|
||||
--compression-format=zstd
|
||||
--compression-level=12
|
||||
|
||||
Reference in New Issue
Block a user