Skip to content

Commit

Permalink
fix: refactor manifest creation
Browse files Browse the repository at this point in the history
  • Loading branch information
No9 committed May 30, 2022
1 parent 23734e5 commit 2051651
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 35 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/buildmusl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Build and Push musl

on:
push:
branches:
- main
tags:
- 'v*'

env:
IMAGE_NAME: core-dump-handler-musl
IMAGE_TAGS: v8.5.0 ${{ github.sha }}
IMAGE_TAGS: ${{ github.sha }}
IMAGE_REGISTRY: quay.io
IMAGE_NAMESPACE: icdh

Expand All @@ -26,6 +24,9 @@ jobs:
# Checkout push-to-registry action github repository
- name: Checkout Push to Registry action
uses: actions/checkout@v2

- id: tag
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}

- name: Install qemu dependency
run: |
Expand All @@ -36,22 +37,32 @@ jobs:
uses: redhat-actions/buildah-build@main
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
tags: ${{ steps.tag.outputs.TAG }}-linux-${{ matrix.arch }}
arch: ${{ matrix.arch }}
build-args: ARCH=${{ matrix.arch }}
containerfiles: |
./musl.Dockerfile
# Push the image manifest to Quay.io (Image Registry)
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
id: push
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
tags: ${{ steps.tag.outputs.TAG }}-linux-${{ matrix.arch }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Echo outputs
- name: Docker Login
uses: docker/login-action@v1
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: quay.io
- name: Build Manifest
id: manifests
continue-on-error: true
run: |
echo "${{ toJSON(steps.push.outputs) }}"
docker manifest create \
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{env.IMAGE_NAME}}:${{ steps.tag.outputs.TAG }} \
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{env.IMAGE_NAME}}:${{ steps.tag.outputs.TAG }}-linux-amd64 \
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{env.IMAGE_NAME}}:${{ steps.tag.outputs.TAG }}-linux-arm64
- run: docker manifest push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{env.IMAGE_NAME}}:${{ steps.tag.outputs.TAG }}
30 changes: 5 additions & 25 deletions charts/core-dump-handler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ sources:

type: application

version: v8.5.0
version: v8.5.1

appVersion: "v8.5.0"
appVersion: "v8.5.1"

icon: https://raw.githubusercontent.com/No9/core-dump-handler/master/assets/handle-with-care-svgrepo-com.svg

Expand All @@ -29,34 +29,14 @@ maintainers:

annotations:
artifacthub.io/changes: |
- kind: added
description: Support for ARM and MUSL Libraries
links:
- name: Github PR
url: https://github.com/IBM/core-dump-handler/pull/93
- kind: fixed
description: Large config output hangs composer
description: MUSL Build fix
links:
- name: Github Issue
url: https://github.com/No9/libcrio/issues/2
- kind: added
description: Support Podname in template
links:
- name: Github PR
url: https://github.com/IBM/core-dump-handler/pull/92
- kind: fixed
description: Loading order of the .env in composer
links:
- name: Github PR
url: https://github.com/IBM/core-dump-handler/pull/91
- kind: fixed
description: Restrict Security Context Constraints
links:
- name: Github PR
url: https://github.com/IBM/core-dump-handler/pull/90
url: https://github.com/IBM/core-dump-handler/issues/88
artifacthub.io/images: |
- name: core-dump-handler
image: quay.io/icdh/core-dump-handler:v8.5.0
image: quay.io/icdh/core-dump-handler:v8.5.1
artifacthub.io/license: MIT
artifacthub.io/signKey: |
fingerprint: BED079E67FD431E45301B1C9949E671B46AC8A34
Expand Down
2 changes: 1 addition & 1 deletion charts/core-dump-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ replicaCount: 1
image:
registry: quay.io
repository: icdh/core-dump-handler
tag: v8.5.0
tag: v8.5.1
pullPolicy: Always
pullSecrets: []
request_mem: "64Mi"
Expand Down

0 comments on commit 2051651

Please sign in to comment.