Skip to content

Commit

Permalink
Publish docker images with labels (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth authored Jan 10, 2024
1 parent 29d4804 commit e603fba
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,31 @@ 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: Login to DockerHub
- 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

- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
Expand Down

0 comments on commit e603fba

Please sign in to comment.