update instance types doc #516
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: ReleaseTrigger | |
on: | |
push: | |
tags: ['v*.*.*'] | |
branches: [ main ] | |
jobs: | |
release-trigger: | |
if: github.repository == 'aws/karpenter' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Save tag and SHA as an artifact for other workflows that run on workflow_run to download them | |
run: | | |
mkdir -p /tmp/artifacts | |
TAG=$(git describe --tags --exact-match || echo "no tag") | |
echo "${TAG}" > /tmp/artifacts/metadata.txt | |
git rev-parse HEAD >> /tmp/artifacts/metadata.txt | |
echo "metadata.txt contents:" | |
cat /tmp/artifacts/metadata.txt | |
echo "TAG=$TAG" >> $GITHUB_ENV | |
- uses: ./.github/actions/upload-artifact | |
- name: Create Github Release | |
if: env.TAG != 'no tag' | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
- uses: ./.github/actions/authenticate-ghcr | |
with: | |
actor: ${{ github.actor }} | |
secret: ${{ secrets.GITHUB_TOKEN }} | |
- run: make release-crd |