From b9d1469146399ac352203d26b5a7cf07aecfd622 Mon Sep 17 00:00:00 2001 From: Ben Soer Date: Thu, 13 Apr 2023 20:34:18 -0700 Subject: [PATCH] Reactredo (#8) * changed token * wrote my own actions to build and publish * forgot the v in the version number * switched to using classic github token * added better tagging and label management --- .github/workflows/build-and-deploy-docker.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy-docker.yml b/.github/workflows/build-and-deploy-docker.yml index 2648924..4d9fbcb 100644 --- a/.github/workflows/build-and-deploy-docker.yml +++ b/.github/workflows/build-and-deploy-docker.yml @@ -1,7 +1,11 @@ name: 'Build And Publish Latest' on: push: - branches: ['master'] + branches: + - 'master' + tags: + - 'v*.*.*' + env: REGISTRY: ghcr.io @@ -31,6 +35,18 @@ jobs: uses: docker/metadata-action@v4.3.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=schedule + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=ref,event=branch + type=ref,event=pr + type=sha + labels: | + org.opencontainers.image.title=debenstack-profile + org.opencontainers.image.description=Debenstack Profile Container + org.opencontainers.image.vendor=debenstack - name: Build and push Docker image uses: docker/build-push-action@v4.0.0