Skip to content

Kyma deployment

Kyma deployment #1

Workflow file for this run

name: Create and publish Docker image for kyma_init to ghcr.io
on:
release:
types: ['published']
env:
REGISTRY: ghcr.io
IMAGE_NAME: SAP/init
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
environment: ghcr:cloud-active-defense
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata of init
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image of init
id: push
uses: docker/build-push-action@v5.3.0
with:
context: ./proxy
push: true
file: ./proxy/DockerfileInit
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}