Skip to content

fix: use tag ref for helm-release so the release workflow can start i… #15

fix: use tag ref for helm-release so the release workflow can start i…

fix: use tag ref for helm-release so the release workflow can start i… #15

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Release Artifacts
run: make release
env:
IMAGE_VERSION: ${{ github.ref_name }}
- name: Upload Release Artifacts
uses: softprops/action-gh-release@v1
with:
files: |
./release/helm-chart-${{ github.ref_name }}.tgz
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
linode/linode-cloud-controller-manager
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{raw}},value=${{ github.ref_name }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}