Removing github actions
This commit is contained in:
1 parent
6f36b03855
commit
512571f8b9
1 file changed
-135
@@ -1,135 +0,0 @@
|
||||
name: Build
|
||||
on:
|
||||
schedule:
|
||||
- cron: "21 21 * * *"
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
SERVER_IMAGE_NAME: "supermicro-x10drh"
|
||||
WORKSTATION_BASE_IMAGE_NAME: "workstation-nvidia-base"
|
||||
LENOVO_IMAGE_NAME: "lenovo-16arh7h"
|
||||
ASROCK_IMAGE_NAME: "asrock-x570"
|
||||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
|
||||
REGISTRY_USER: ${{ github.actor }}
|
||||
REGISTRY_PASSWORD: ${{ github.token }}
|
||||
|
||||
|
||||
jobs:
|
||||
supermicro-x10drh:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build container image
|
||||
uses: redhat-actions/buildah-build@v2.12
|
||||
with:
|
||||
containerfiles: Containerfile-${{ env.SERVER_IMAGE_NAME }}
|
||||
image: ${{ env.SERVER_IMAGE_NAME }}
|
||||
layers: false
|
||||
oci: true
|
||||
|
||||
- name: Push to ghcr.io
|
||||
uses: redhat-actions/push-to-registry@v2.7
|
||||
with:
|
||||
image: ${{ env.SERVER_IMAGE_NAME }}
|
||||
tags: "latest"
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
workstation-nvidia-base:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: false
|
||||
|
||||
# all of these default to true, but feel free to set to
|
||||
# "false" if necessary for your workflow
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
docker-images: false
|
||||
swap-storage: true
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build container image
|
||||
uses: redhat-actions/buildah-build@v2.12
|
||||
with:
|
||||
containerfiles: Containerfile-${{ env.WORKSTATION_BASE_IMAGE_NAME }}
|
||||
image: ${{ env.WORKSTATION_BASE_IMAGE_NAME }}
|
||||
layers: false
|
||||
oci: true
|
||||
|
||||
- name: Push to ghcr.io
|
||||
uses: redhat-actions/push-to-registry@v2.7
|
||||
with:
|
||||
image: ${{ env.WORKSTATION_BASE_IMAGE_NAME }}
|
||||
tags: "latest"
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
asrock-x570:
|
||||
needs: workstation-nvidia-base
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build container image
|
||||
uses: redhat-actions/buildah-build@v2.12
|
||||
with:
|
||||
containerfiles: Containerfile-${{ env.ASROCK_IMAGE_NAME }}
|
||||
image: ${{ env.ASROCK_IMAGE_NAME }}
|
||||
layers: false
|
||||
oci: true
|
||||
|
||||
- name: Push to ghcr.io
|
||||
uses: redhat-actions/push-to-registry@v2.7
|
||||
with:
|
||||
image: ${{ env.ASROCK_IMAGE_NAME }}
|
||||
tags: "latest"
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
lenovo-16arh7h:
|
||||
needs: workstation-nvidia-base
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build container image
|
||||
uses: redhat-actions/buildah-build@v2.12
|
||||
with:
|
||||
containerfiles: Containerfile-${{ env.LENOVO_IMAGE_NAME }}
|
||||
image: ${{ env.LENOVO_IMAGE_NAME }}
|
||||
layers: false
|
||||
oci: true
|
||||
|
||||
- name: Push to ghcr.io
|
||||
uses: redhat-actions/push-to-registry@v2.7
|
||||
with:
|
||||
image: ${{ env.LENOVO_IMAGE_NAME }}
|
||||
tags: "latest"
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
|
||||
Reference in new issue
Block a user