0.24.0 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: # yamllint disable-line rule:truthy | |
release: | |
types: [published] | |
jobs: | |
# Builds the Dockerfile and pushes it to dockerhub | |
release-amd64: | |
name: Release - Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker - Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker - Metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ github.repository }} | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=semver,pattern=v{{version}} | |
type=semver,pattern=v{{major}}.{{minor}} | |
type=semver,pattern=v{{major}} | |
flavor: latest=true | |
- name: Docker - Build / Push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
# Builds the Dockerfile.arm64 and pushes it to dockerhub | |
release-arm64: | |
name: Release - Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker - Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker - Metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ github.repository }} | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=semver,pattern=v{{version}}-arm64 | |
type=semver,pattern=v{{major}}.{{minor}}-arm64 | |
type=semver,pattern=v{{major}}-arm64 | |
type=raw,value=latest-arm64 | |
flavor: latest=false | |
- name: Docker - Build / Push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
file: Dockerfile.arm64 | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
# Generates a new release specifically for the helm chart, using the helm charts version | |
# Only generates a new release if the helm charts version has changed since the last release | |
# Will then update the gh-pages branch & helm repository | |
release-helm: | |
name: Release - Helm chart | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Git - Configure | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
# Will push updates to a index.yaml file in the gh-pages branch | |
- name: Helm - chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts | |
pages_branch: gh-pages | |
mark_as_latest: false | |
skip_existing: true | |
config: ./charts/cr.yaml | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |