Skip to content

Fix for envFilter

Fix for envFilter #9

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
REGISTRY: ghcr.io
USER: dgolubets
IMAGE_NAME: k8s-managed-node-pool-do
CHART_NAME: managed-node-pool-operator-do
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Tags
id: tag
uses: ildug/get-tag-action@v1
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: build-and-push-docker
uses: docker/[email protected]
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE_NAME }}:${{ env.DAG_VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and publish Helm chart
id: build-and-push-helm
run: |
helm package charts/$CHART_NAME --version $DAG_VERSION --app-version $DAG_VERSION
helm push $CHART_NAME-$DAG_VERSION.tgz oci://$REGISTRY/$USER