Skip to content

Anlegen einer Subsite mit dem Titel des entsprechenden Gruppennamens … #7

Anlegen einer Subsite mit dem Titel des entsprechenden Gruppennamens …

Anlegen einer Subsite mit dem Titel des entsprechenden Gruppennamens … #7

name: Publish DEV Docker Image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
create-docker-image:
name: Create Docker Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: develop
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
context: .
push: true
file: .github/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}