Skip to content

Support specifying machinepool labels and taints #2

Support specifying machinepool labels and taints

Support specifying machinepool labels and taints #2

Workflow file for this run

name: Release
# This Github Action workflow is triggered, when a new release is published.
on:
release:
types: [published]
jobs:
build_and_push_container_image:
name: Build and push container image
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: obmondo
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push AMD64 and ARM64 container images
uses: docker/build-push-action@v4
with:
context: .
file: build/Dockerfile
# NOTE : It takes pretty long to build container images for the ARM64 platform (even when
# using QEMU).
platforms: linux/amd64,linux/arm64
tags: ghcr.io/obmondo/kubeaid-bootstrap-script:${{ github.event.release.tag_name }}
push: true
# Experimental cache exporter for GitHub Actions provided by buildx and BuildKit.
# It uses the GitHub Cache API to fetch and load the Docker layer cache blobs across
# builds.
cache-from: type=gha
cache-to: type=gha,mode=max