Skip to content

allow access to runtime api server (#4) #4

allow access to runtime api server (#4)

allow access to runtime api server (#4) #4

name: go:pre-release
on:
push:
tags: "v*"
jobs:
create-pre-release:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v4
- name: Update VERSION file
run: |-
echo "${{ github.ref_name }}" > VERSION
- name: Create controller-registration.yaml
run: |-
vendor/github.com/gardener/gardener/hack/generate-controller-registration.sh shoot-kubecost charts/gardener-extension-shoot-kubecost ${{ github.ref_name }} controller-registration.yaml \
Extension:shoot-kubecost
vendor/github.com/gardener/gardener/hack/generate-controller-registration.sh shoot-kubecost charts/gardener-extension-shoot-kubecost ${{ github.ref_name }}-rc.${{ github.sha }} rc-controller-registration.yaml \
Extension:shoot-kubecost
- name: Create Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
body: |-
# [gardener-extension-shoot-kubecost] ${{ github.ref_name }}
prerelease: true
files: |-
controller-registration.yaml
rc-controller-registration.yaml
go-pre-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v4
- name: Update VERSION file
run: |-
echo "${{ github.ref_name }}-rc.${{ github.sha }}" > VERSION
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish image
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/liquid-reply/gardener-extension-shoot-kubecost:${{ github.ref_name }}-rc.${{ github.sha }}