Skip to content

Publish docker images with labels (#456) #124

Publish docker images with labels (#456)

Publish docker images with labels (#456) #124

name: build-container
on:
push:
branches:
- 'main'
tags:
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
if: ${{ github.triggering_actor != 'dependabot[bot]' }}
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/fsr-de/myhpi
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/fsr-de/myhpi:latest