From 7aa56659087a125e0e6ecc6cff2360efd02fa97f Mon Sep 17 00:00:00 2001 From: Chase C <13863948+ChaseCares@users.noreply.github.com> Date: Sat, 27 Jan 2024 00:23:07 -0500 Subject: [PATCH] Add metadata to build workflow --- .github/workflows/build-container.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-container.yaml b/.github/workflows/build-container.yaml index 28a9e4d..b5b4747 100644 --- a/.github/workflows/build-container.yaml +++ b/.github/workflows/build-container.yaml @@ -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 @@ -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 }}