Skip to content

Commit

Permalink
Add labels to docker image on push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
MRmlik12 committed May 12, 2022
1 parent 502836d commit 4a8fcc3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build
on:
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
jobs:
build-push-image:
runs-on: ubuntu-latest
Expand All @@ -17,11 +19,12 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ghcr.io/vulderapp/admin
images: ghcr.io/vulderapp/school
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
registry: ghcr.io
context: .
push: true
tags: ghcr.io/vulderapp/admin:${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 4a8fcc3

Please sign in to comment.