From 2d45f23996be2c914a7805316535e42e97a22da3 Mon Sep 17 00:00:00 2001 From: Teemu Autto Date: Thu, 9 Nov 2023 16:35:25 +0000 Subject: [PATCH] Use meta action for labels. --- .github/workflows/docker-image.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3d0ecb6..3490b6d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -36,6 +36,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Get container meta information + id: meta + uses: docker/metadata-action@v3 + with: + images: ${{ env.IMAGE_NAME }} + - name: Build and push fileserv uses: docker/build-push-action@v4 with: @@ -43,7 +49,8 @@ jobs: target: base platforms: ${{ env.PLATFORMS }} push: true - tags: ${{ env.IMAGE_NAME }}:${{ github.ref_name }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} - name: Build and push devcontainer when pushing to main uses: devcontainers/ci@v0.3