Skip to content

v0.3.1

v0.3.1 #3

Workflow file for this run

name: Upload release assets
on:
release:
types:
- created
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release-assets:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.22.4
- name: Get tag from current run
run: |
TAG=${{ github.ref_name }}
echo "Tag for packaging chart is $TAG"
echo "RELEASE_TAG=${TAG}" >> $GITHUB_ENV
echo "RELEASE_TAG_TRIMMED_V=${TAG#v}" >> $GITHUB_ENV
- run: make build-dist-manifests IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${RELEASE_TAG}
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.yaml
asset_name: etcd-operator.yaml
tag: ${{ github.ref }}
overwrite: true
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.crds.yaml
asset_name: etcd-operator.crds.yaml
tag: ${{ github.ref }}
overwrite: true
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.non-crds.yaml
asset_name: etcd-operator.non-crds.yaml
tag: ${{ github.ref }}
overwrite: true