Skip to content

Fix image name and tag for release (#120) #16

Fix image name and tag for release (#120)

Fix image name and tag for release (#120) #16

Workflow file for this run

name: release
on:
push:
tags:
- "v*.*.*"
env:
TAG: ${{ github.ref_name }}
IMAGE_NAME: ${{ github.repository_owner }}/cluster-api-addon-provider-fleet
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Install just
uses: extractions/setup-just@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: [build]
steps:
- name: Install just
uses: extractions/setup-just@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update manifests
run: |
# this is quite naive, but i don't think we need more for now
sed -i "s/dev/${TAG}/g" config/default/manager_image_patch.yaml
just release-manifests
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: false
draft: true
fail_on_unmatched_files: true
generate_release_notes: true
discussion_category_name: Announcements
name: ${{ env.TAG }}
files: |
metadata.yaml
_out/addon-components.yaml