Skip to content

Prepare new release to address CVEs (#131) #24

Prepare new release to address CVEs (#131)

Prepare new release to address CVEs (#131) #24

Workflow file for this run

name: Release builds
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
jobs:
setup-image:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Extract tag
id: extract_tag
run: echo "tag=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_OUTPUT
- name: Print tag
run: echo "Running release build for ${{ steps.extract_tag.outputs.tag }}"
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Buildx
id: buildx
uses: docker/[email protected]
- name: Show Buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to Open Source ECR
run: make login
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Login to Docker Hub
run: |
docker login \
--username ${{ secrets.DOCKERHUB_LOGIN }} \
--password ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push image to Open Source ECR
run: make build-push-multiplatform BUILD_TAG=${{ steps.extract_tag.outputs.tag }}
- name: Build and push UBI image to Open Source ECR
run: make build-push-multiplatform \
BUILD_TAG=${{ steps.extract_tag.outputs.tag }} \
TAG_SUFFIX=-ubi \
DOCKERFILE=Dockerfile-ubi \
PLATFORMS=linux/amd64,linux/arm64
- name: Build and push image to Docker Hub
run: |-
make build-push-multiplatform \
BUILD_TAG=${{ steps.extract_tag.outputs.tag }} \
REPO_URL=sumologic/kubernetes-setup
- name: Build and push UBI image to Docker Hub
run: |-
make build-push-multiplatform \
BUILD_TAG=${{ steps.extract_tag.outputs.tag }} \
REPO_URL=sumologic/kubernetes-setup \
TAG_SUFFIX=-ubi \
DOCKERFILE=Dockerfile-ubi \
PLATFORMS=linux/amd64,linux/arm64