Skip to content

Commit

Permalink
Revert "Add multi-platform support for execution environment (#8951)" (
Browse files Browse the repository at this point in the history
…#9040)

This reverts commit 914b18d.
  • Loading branch information
fridim authored Feb 12, 2025
1 parent 914b18d commit 756a4e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 39 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build-ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,16 @@ jobs:

- uses: actions/setup-python@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qemu binfmt-support
- name: Setup QEMU for multi-platform builds
uses: docker/setup-qemu-action@v2
with:
platforms: all

- name: Cache Buildah layers
uses: actions/cache@v4
with:
path: /var/lib/containers/storage
key: ${{ runner.os }}-buildah-cache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildah-cache-
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
id: build-image
with:
image: ee-multicloud
tags: ${{inputs.tag}} ${{ github.sha }}
labels: ${{ inputs.labels }}
platforms: linux/amd64,linux/arm64
context: tools/execution_environments/ee-multicloud-public
containerfiles: |-
tools/execution_environments/ee-multicloud-public/Containerfile
layers: true
- name: Push To quay.io
id: push-to-quay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,19 @@ set -ue

cd /tmp

# initArch discovers the architecture for this system.
ARCH=$(uname -m)
case $ARCH in
armv5*) ARCH="armv5";;
armv6*) ARCH="armv6";;
armv7*) ARCH="arm";;
aarch64) ARCH="arm64";;
x86) ARCH="386";;
x86_64) ARCH="amd64";;
i686) ARCH="386";;
i386) ARCH="386";;
esac

# OC
# Install rhel8 version of oc
# https://access.redhat.com/solutions/7077895

version=stable
tarball=openshift-client-linux-${ARCH}-rhel8.tar.gz
url="https://mirror.openshift.com/pub/openshift-v4/${ARCH}/clients/ocp/${version}/${tarball}"
arch=x86_64
tarball=openshift-client-linux.tar.gz
url="https://mirror.openshift.com/pub/openshift-v4/${arch}/clients/ocp/${version}/${tarball}"
curl -s -L "${url}" -o ${tarball}
tar xzf ${tarball}
install -t /usr/bin oc kubectl
rm ${tarball}

# Bitwarden
# DISCLAIMER: BW doesn't support ARM64 yet, so this is just a placeholder

url="https://vault.bitwarden.com/download/?app=cli&platform=linux"
curl -s -L "${url}" -o bw.zip
unzip bw.zip
Expand All @@ -37,8 +24,9 @@ rm bw bw.zip


# AWS CLI

aws_version=2.4.23
curl -s -L "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m)-${aws_version}.zip" \
curl -s -L "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${aws_version}.zip" \
-o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
Expand Down

0 comments on commit 756a4e0

Please sign in to comment.