Skip to content

Commit

Permalink
Add metadata to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaseCares committed Jan 27, 2024
1 parent 9e87274 commit 7aa5665
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -27,8 +30,19 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
seaduboi/broadcast-box
ghcr.io/${{ github.repository }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: seaduboi/broadcast-box:latest
tags: |
type=raw,value=latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7aa5665

Please sign in to comment.