Release-Genkubeconfig-Image #1
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: Release-Genkubeconfig-Image | |
on: | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io/kyma-project/cfapi | |
jobs: | |
build: | |
runs-on: [ self-hosted ] | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create korifi release artifacts | |
shell: bash | |
working-directory: 'tools/kubeconfig' | |
run: | | |
docker build -t ${{ env.REGISTRY }}/genkubeconfig | |
docker push ${{ env.REGISTRY }}/genkubeconfig | |