Skip to content

support multiple HPA versions (#65) #16

support multiple HPA versions (#65)

support multiple HPA versions (#65) #16

Workflow file for this run

on:
push:
branches:
- main
jobs:
release-docker:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
strategy:
matrix:
platform:
# - { earthly: linux/arm64, suffix: linux-arm64 }
- { earthly: linux/amd64, suffix: linux-amd64 }
steps:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
if: matrix.platform == 'linux/arm64'
- uses: actions/checkout@v3
- uses: wistia/[email protected]
- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }
- name: extract sha
run: |
echo "GIT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: login to registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Docker image
run: |
earthly \
--platform ${{ matrix.platform.earthly }} \
--push \
+docker-dev \
--HELM_VERSION=${{ env.HELM_TOOL_VERSION }} \
--KUSTOMIZE_VERSION=${{ env.KUSTOMIZE_TOOL_VERSION }} \
--GIT_TAG=main-${{ matrix.platform.suffix }} \
--GIT_COMMIT=${{ env.GIT_COMMIT }} \
--CI_REGISTRY_IMAGE=ghcr.io/${{ github.repository_owner }}/kubechecks
release-multiarch:
runs-on: ubuntu-22.04
needs:
- release-docker
permissions:
packages: write
steps:
- name: extract sha
run: |
echo "GIT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: login to registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: int128/docker-manifest-create-action@v1
with:
tags: ghcr.io/${{ github.repository_owner }}/kubechecks:${{ env.GIT_RELEASE_TAG }}
suffixes: |
-linux-amd64
# -linux-arm64