Skip to content

Merge pull request #3 from timia2109/feature/mealplan-management #2

Merge pull request #3 from timia2109/feature/mealplan-management

Merge pull request #3 from timia2109/feature/mealplan-management #2

Workflow file for this run

name: Containerize
on:
push:
branches:
- epic/*
env:
REGISTRY: ghcr.io
jobs:
build-docker-image:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Metadata action
id: docker_metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=ref,event=branch
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}