Skip to content

fix(gh-actions): get git tag from ref_name when releasing (#37) #10

fix(gh-actions): get git tag from ref_name when releasing (#37)

fix(gh-actions): get git tag from ref_name when releasing (#37) #10

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Git tag
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Release production Docker images
run: make release-docker
# - name: Update Docker Hub description
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_TOKEN }}
# repository: xelonag/xelon-csi
# short-description: "Xelon Persistent Storage CSI Driver"
#
# - name: GoReleaser
# uses: goreleaser/goreleaser-action@v6
# with:
# args: release -f .github/goreleaser.yaml --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}