mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 06:46:39 +01:00
ci: cleanup unnecessary/obsolete workflows
Images are now built in Konflux for testing PRs and for releases, so these workflows are now unnecessary. Signed-off-by: Mike Bonnet <mikeb@redhat.com>
This commit is contained in:
71
.github/workflows/ci-images.yml
vendored
71
.github/workflows/ci-images.yml
vendored
@@ -1,71 +0,0 @@
|
||||
# Split the image builds into a separate workflow so we can easily run it
|
||||
# when only the Containerfiles have changed without introducing new external
|
||||
# GitHub Actions dependencies, such as the `tj-actions/changed-files` action.
|
||||
name: ci images
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "container-images/**"
|
||||
- ".github/workflows/ci-images.yml"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "container-images/**"
|
||||
- ".github/workflows/ci-images.yml"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Upgrade to podman 5
|
||||
run: |
|
||||
set -e
|
||||
# Enable universe repository which contains podman
|
||||
sudo add-apt-repository "deb http://old-releases.ubuntu.com/ubuntu oracular universe"
|
||||
# Update package lists
|
||||
sudo apt-get update
|
||||
sudo apt-get purge firefox
|
||||
# Install specific podman version
|
||||
sudo apt-get upgrade
|
||||
|
||||
- name: install
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install podman bash
|
||||
make install-requirements
|
||||
|
||||
- name: Print disk space before cleanup
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
|
||||
- name: Free Disk Space Linux
|
||||
shell: bash
|
||||
run: |
|
||||
sudo mkdir -m a=rwx -p /mnt/tmp /mnt/runner
|
||||
sudo mkdir -m o=rwx -p /home/runner/.local
|
||||
sudo chown runner:runner /mnt/runner /home/runner/.local
|
||||
sudo mount --bind /mnt/runner /home/runner/.local
|
||||
sudo rm -rf \
|
||||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
||||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
||||
/usr/share/dotnet /usr/lib/jvm /opt/hostedtoolcache/CodeQL \
|
||||
"$AGENT_TOOLSDIRECTORY" || true
|
||||
sudo swapoff -a
|
||||
sudo rm -f /mnt/Swapfile
|
||||
|
||||
- name: Print disk space after cleanup
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
|
||||
- name: Build Images
|
||||
run: |
|
||||
./container_build.sh -r -c -s build
|
||||
154
.github/workflows/latest.yml
vendored
154
.github/workflows/latest.yml
vendored
@@ -1,154 +0,0 @@
|
||||
name: latest-build
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Free Disk Space Linux
|
||||
shell: bash
|
||||
run: |
|
||||
sudo docker rmi "$(docker image ls -aq)" >/dev/null 2>&1 || true
|
||||
sudo rm -rf \
|
||||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
||||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
||||
/usr/lib/jvm || true
|
||||
sudo apt install aptitude -y >/dev/null 2>&1
|
||||
|
||||
- name: Upgrade to podman 5
|
||||
run: |
|
||||
set -e
|
||||
# Enable universe repository which contains podman
|
||||
sudo add-apt-repository "deb http://old-releases.ubuntu.com/ubuntu oracular universe"
|
||||
# Update package lists
|
||||
sudo apt-get update
|
||||
sudo apt-get purge firefox
|
||||
# Install specific podman version
|
||||
sudo apt-get upgrade
|
||||
|
||||
# /mnt has ~ 65 GB free disk space. / is too small.
|
||||
- name: Reconfigure Docker data-root
|
||||
run: |
|
||||
set -e
|
||||
sudo mkdir -p /mnt/docker /etc/docker
|
||||
echo '{"data-root": "/mnt/docker"}' > /tmp/daemon.json
|
||||
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
||||
sudo systemctl restart docker.service
|
||||
df -h
|
||||
|
||||
- name: Docker info
|
||||
run: docker info
|
||||
|
||||
- name: Print disk space after cleanup
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
|
||||
- name: Build a container for CPU inferencing
|
||||
run: ./container_build.sh build ramalama
|
||||
|
||||
- name: Install end-to-end test requirements
|
||||
run: |
|
||||
sudo apt-get install bats
|
||||
make install-requirements
|
||||
|
||||
- name: Run end-to-end tests
|
||||
run: make end-to-end-tests
|
||||
|
||||
macos:
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install end-to-end test requirements
|
||||
shell: bash
|
||||
run: |
|
||||
brew install go shellcheck bats
|
||||
make install-requirements
|
||||
|
||||
- name: Run end-to-end tests
|
||||
shell: bash
|
||||
run: make end-to-end-tests
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: [linux, macos]
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Upgrade to podman 5
|
||||
run: |
|
||||
set -e
|
||||
# Enable universe repository which contains podman
|
||||
sudo add-apt-repository "deb http://old-releases.ubuntu.com/ubuntu oracular universe"
|
||||
# Update package lists
|
||||
sudo apt-get update
|
||||
sudo apt-get purge firefox
|
||||
# Install specific podman version
|
||||
sudo apt-get upgrade
|
||||
|
||||
- name: Free Disk Space Linux
|
||||
shell: bash
|
||||
run: |
|
||||
sudo docker rmi "$(docker image ls -aq)" >/dev/null 2>&1 || true
|
||||
sudo rm -rf \
|
||||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
||||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
||||
/usr/lib/jvm || true
|
||||
sudo apt install aptitude -y >/dev/null 2>&1
|
||||
|
||||
# /mnt has ~ 65 GB free disk space. / is too small.
|
||||
- name: Reconfigure Docker data-root
|
||||
run: |
|
||||
set -e
|
||||
sudo mkdir -p /mnt/docker /etc/docker
|
||||
echo '{"data-root": "/mnt/docker"}' > /tmp/daemon.json
|
||||
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
||||
sudo systemctl restart docker.service
|
||||
df -h
|
||||
|
||||
- name: Docker info
|
||||
run: docker info
|
||||
|
||||
- name: Print disk space after cleanup
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
|
||||
- name: Install qemu-user-static
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install qemu-user-static
|
||||
|
||||
- name: Login to quay
|
||||
uses: redhat-actions/podman-login@v1.7
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
|
||||
- name: Build images for amd64 and aarch64
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
id: build_image
|
||||
with:
|
||||
image: quay.io/ramalama/ramalama
|
||||
tags: latest
|
||||
containerfiles: |
|
||||
container-images/ramalama/Containerfile
|
||||
platforms: linux/amd64, linux/arm64
|
||||
|
||||
- name: Push images to quay
|
||||
uses: redhat-actions/push-to-registry@v2.8
|
||||
with:
|
||||
image: ramalama/ramalama
|
||||
tags: latest
|
||||
registry: quay.io
|
||||
125
.github/workflows/nightly.yml
vendored
125
.github/workflows/nightly.yml
vendored
@@ -1,125 +0,0 @@
|
||||
name: nightly-build
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Free Disk Space Linux
|
||||
shell: bash
|
||||
run: |
|
||||
sudo docker rmi "$(docker image ls -aq)" >/dev/null 2>&1 || true
|
||||
sudo rm -rf \
|
||||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
||||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
||||
/usr/lib/jvm || true
|
||||
sudo apt install aptitude -y >/dev/null 2>&1
|
||||
|
||||
- name: Upgrade to podman 5
|
||||
run: |
|
||||
set -e
|
||||
# Enable universe repository which contains podman
|
||||
sudo add-apt-repository "deb http://old-releases.ubuntu.com/ubuntu oracular universe"
|
||||
# Update package lists
|
||||
sudo apt-get update
|
||||
sudo apt-get purge firefox
|
||||
# Install specific podman version
|
||||
sudo apt-get upgrade
|
||||
|
||||
# /mnt has ~ 65 GB free disk space. / is too small.
|
||||
- name: Reconfigure Docker data-root
|
||||
run: |
|
||||
set -e
|
||||
sudo mkdir -p /mnt/docker /etc/docker
|
||||
echo '{"data-root": "/mnt/docker"}' > /tmp/daemon.json
|
||||
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
||||
sudo systemctl restart docker.service
|
||||
df -h
|
||||
|
||||
- name: Docker info
|
||||
run: docker info
|
||||
|
||||
- name: Print disk space after cleanup
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
|
||||
- name: Build a container for CPU inferencing
|
||||
run: ./container_build.sh build ramalama
|
||||
|
||||
- name: Install end-to-end test requirements
|
||||
run: |
|
||||
sudo apt-get install bats
|
||||
make install-requirements
|
||||
|
||||
- name: Run end-to-end tests
|
||||
run: make end-to-end-tests
|
||||
|
||||
macos:
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install end-to-end test requirements
|
||||
shell: bash
|
||||
run: |
|
||||
brew install go shellcheck bats
|
||||
make install-requirements
|
||||
|
||||
- name: Run end-to-end tests
|
||||
shell: bash
|
||||
run: make end-to-end-tests
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: [linux, macos]
|
||||
steps:
|
||||
- name: Checkout ramalama
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Upgrade to podman 5
|
||||
run: |
|
||||
set -e
|
||||
# Enable universe repository which contains podman
|
||||
sudo add-apt-repository "deb http://old-releases.ubuntu.com/ubuntu oracular universe"
|
||||
# Update package lists
|
||||
sudo apt-get update
|
||||
sudo apt-get purge firefox
|
||||
# Install specific podman version
|
||||
sudo apt-get upgrade
|
||||
|
||||
- name: install qemu-user-static
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install qemu-user-static
|
||||
|
||||
- name: Login to quay
|
||||
uses: redhat-actions/podman-login@v1.7
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
|
||||
- name: Build images for amd64 and arm64
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
id: build_image
|
||||
with:
|
||||
image: quay.io/ramalama/ramalama
|
||||
tags: nightly
|
||||
containerfiles: |
|
||||
container-images/ramalama/Containerfile
|
||||
platforms: linux/amd64, linux/arm64
|
||||
|
||||
- name: Push images to quay
|
||||
uses: redhat-actions/push-to-registry@v2.8
|
||||
with:
|
||||
image: ramalama/ramalama
|
||||
tags: nightly
|
||||
registry: quay.io
|
||||
Reference in New Issue
Block a user