Skip to content

Kyma configmanager config #9

Kyma configmanager config

Kyma configmanager config #9

Workflow file for this run

name: Create and publish Docker image for myapp to ghcr.io
on:
release:
types: ['published']
env:
REGISTRY: ghcr.io
IMAGE_NAME: SAP/myapp
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/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata of myapp
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image of myapp
id: push
uses: docker/[email protected]
with:
context: ./myapp
push: true
file: ./myapp/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}