diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index b6ee2dc..b1ae78a 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -13,6 +13,18 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - + name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + # list of Docker images to use as base name for tags + images: | + 3n3a/httpproxy-cache-api:latest + # generate Docker tags based on the following events/attributes + tags: | + type=semver,pattern={{version}} + type=sha - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -29,4 +41,5 @@ jobs: with: context: . push: true - tags: 3n3a/httpproxy-cache-api:latest \ No newline at end of file + tags: ${{ steps.output.meta.tags }} + labels: ${{ steps.output.meta.labels }} \ No newline at end of file