Skip to content

fix pdb label selector #76

fix pdb label selector

fix pdb label selector #76

Workflow file for this run

name: publish
on:
push:
branches:
- main
release:
types:
- published
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/build-push-action@v6
with:
push: true
file: ./Containerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
provenance: false
release-helm-chart:
permissions:
contents: write
runs-on: ubuntu-latest
if: ${{ github.event.release.tag_name != '' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: azure/setup-helm@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
VERSION=$(echo "${{github.event.release.tag_name }}" | sed 's/v//g')
sed -i "s/^version:.*$/version: ${VERSION}/" ./helm/haproxy-operator/Chart.yaml
sed -i "s/^appVersion:.*$/appVersion: v${VERSION}/" ./helm/haproxy-operator/Chart.yaml
- uses: helm/[email protected]
with:
charts_dir: helm
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}