diff --git a/.github/workflows/quay_binaries_push.yml b/.github/workflows/quay_binaries_push.yml deleted file mode 100644 index 799798b..0000000 --- a/.github/workflows/quay_binaries_push.yml +++ /dev/null @@ -1,97 +0,0 @@ -# Push binaries to Quay.io on pushes to oadp-* branches -name: Multi-Arch Binary Push to Quay.io - -on: - push: - branches: - - 'oadp-*' - pull_request: - branches: - - 'oadp-*' - - -env: - IMAGE_REPO: quay.io/konveyor/oadp-cli-binaries - -jobs: - - multi-arch-build: - name: Build Multi-Arch Images - runs-on: ubuntu-latest - strategy: - matrix: - arch: [amd64, arm64] - steps: - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - cache: true - - - name: Build Image for ${{ matrix.arch }} - id: build_image - uses: redhat-actions/buildah-build@v2 - with: - image: oadp-cli-binaries-local - tags: ${{ matrix.arch }} - archs: ${{ matrix.arch }} - build-args: | - TARGETOS=linux - TARGETARCH=${{ matrix.arch }} - containerfiles: | - ./Containerfile.download - - - name: Save image as tar - run: | - buildah push ${{ steps.build_image.outputs.image-with-tag }} oci-archive:oadp-cli-${{ matrix.arch }}.tar - - - name: Upload image artifact - uses: actions/upload-artifact@v4 - with: - name: oadp-cli-image-${{ matrix.arch }} - path: oadp-cli-${{ matrix.arch }}.tar - retention-days: 1 - - push-manifest: - name: Create and Push Multi-Arch Manifest - runs-on: ubuntu-latest - needs: multi-arch-build - if: github.event_name == 'push' - steps: - - name: Download all artifacts - uses: actions/download-artifact@v4 - with: - pattern: oadp-cli-image-* - - - name: Buildah login - run: buildah login -u ${{ secrets.QUAY_USER }} -p ${{ secrets.QUAY_TOKEN }} quay.io - - - name: Load images and tag archs - run: | - # Load all arch images and capture their IDs - AMD64_ID=$(buildah pull oci-archive:oadp-cli-image-amd64/oadp-cli-amd64.tar) - ARM64_ID=$(buildah pull oci-archive:oadp-cli-image-arm64/oadp-cli-arm64.tar) - - # Tag the loaded images using their IDs - buildah tag $AMD64_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64 - buildah tag $ARM64_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-arm64 - - - name: Create and push multi-arch manifest (version tag) - if: github.ref_name != 'oadp-dev' - run: | - buildah manifest create ${{ env.IMAGE_REPO }}:${{ github.ref_name }} - buildah manifest add ${{ env.IMAGE_REPO }}:${{ github.ref_name }} ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64 - buildah manifest add ${{ env.IMAGE_REPO }}:${{ github.ref_name }} ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-arm64 - buildah manifest push --all ${{ env.IMAGE_REPO }}:${{ github.ref_name }} - - - name: Create and push multi-arch manifest (latest tag) - if: github.ref_name == 'oadp-dev' - run: | - buildah manifest create ${{ env.IMAGE_REPO }}:latest - buildah manifest add ${{ env.IMAGE_REPO }}:latest ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64 - buildah manifest add ${{ env.IMAGE_REPO }}:latest ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-arm64 - buildah manifest push --all ${{ env.IMAGE_REPO }}:latest \ No newline at end of file