Skip to content

Commit

Permalink
test simple multi-arch build
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Sep 29, 2023
1 parent efbea39 commit 6de3640
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
file: ./images/Containerfile
push: true
tags: |
quay.io/wizhao/tft-tools:${{ steps.date.outputs.date }}-x86_64
quay.io/sdaniele/tft-tools:${{ steps.date.outputs.date }}-x86_64
- name: Build and Push TFT-ARM64 image
uses: docker/build-push-action@v2
with:
file: ./images/Containerfile
push: true
platforms: linux/arm64
platforms: linux/amd64, linux/arm64
tags: |
quay.io/wizhao/tft-tools:${{ steps.date.outputs.date }}-aarch64
quay.io/sdaniele/tft-tools:${{ steps.date.outputs.date }}-aarch64
- name: Create and Push Multi-Architecture Manifest
run: |
sudo podman manifest create tft-tools-${{ steps.date.outputs.date }}-list
sudo podman manifest add tft-tools-${{ steps.date.outputs.date }}-list quay.io/wizhao/tft-tools:${{ steps.date.outputs.date }}-x86_64
sudo podman manifest add tft-tools-${{ steps.date.outputs.date }}-list quay.io/wizhao/tft-tools:${{ steps.date.outputs.date }}-aarch64
sudo podman manifest push tft-tools-${{ steps.date.outputs.date }}-list quay.io/wizhao/tft-tools:${{ steps.date.outputs.date }}
sudo podman manifest push tft-tools-${{ steps.date.outputs.date }}-list quay.io/wizhao/tft-tools:latest
sudo podman manifest add tft-tools-${{ steps.date.outputs.date }}-list quay.io/sdaniele/tft-tools:${{ steps.date.outputs.date }}-x86_64
sudo podman manifest add tft-tools-${{ steps.date.outputs.date }}-list quay.io/sdaniele/tft-tools:${{ steps.date.outputs.date }}-aarch64
sudo podman manifest push tft-tools-${{ steps.date.outputs.date }}-list quay.io/sdaniele/tft-tools:${{ steps.date.outputs.date }}
sudo podman manifest push tft-tools-${{ steps.date.outputs.date }}-list quay.io/sdaniele/tft-tools:latest
7 changes: 1 addition & 6 deletions images/Containerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM quay.io/centos/centos:stream9

RUN curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:1.26.1.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:1.26.1/CentOS_9_Stream/devel:kubic:libcontainers:stable:cri-o:1.26.1.repo

RUN curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_9_Stream/devel:kubic:libcontainers:stable.repo


RUN INSTALL_PKGS="vim wget jq python3 git cri-tools net-tools iptables iproute pciutils ethtool httpd iperf3 tcpdump sysstat ipmitool util-linux" && yum install -y ${INSTALL_PKGS}
RUN yum install -y vim wget

CMD ["/bin/bash"]

0 comments on commit 6de3640

Please sign in to comment.