Skip to content

Azure: Handle read-only server-parameters (#14) #9

Azure: Handle read-only server-parameters (#14)

Azure: Handle read-only server-parameters (#14) #9

Workflow file for this run

name: Create new release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Create new release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image to GitHub Container Registry
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/hybrid-cloud-postgresql-operator
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
TAG=${GITHUB_REF//refs\/tags\/v}
docker build . -t $IMAGE_ID:$TAG
docker push $IMAGE_ID:$TAG
- name: Prepare helm chart
env:
GITHUB_REF: ${{ github.ref }}
run: |
VERSION=${GITHUB_REF//refs\/tags\/v}
sed -i 's/0.0.1/'"${VERSION}"'/' helm/hybrid-cloud-postgresql-operator/Chart.yaml
sed -i 's/0.1.0/'"${VERSION}"'/' helm/hybrid-cloud-postgresql-operator/Chart.yaml
sed -i 's/dev/'"${VERSION}"'/' helm/hybrid-cloud-postgresql-operator/values.yaml
sed -i 's/0.0.1/'"${VERSION}"'/' helm/hybrid-cloud-postgresql-operator-crds/Chart.yaml
sed -i 's/0.1.0/'"${VERSION}"'/' helm/hybrid-cloud-postgresql-operator-crds/Chart.yaml
- name: Publish helm chart
uses: stefanprodan/helm-gh-pages@master
with:
charts_dir: helm
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false