diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 57494e6a..cbf6d768 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,6 +12,17 @@ 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: | + ${{ secrets.DOCKER_HUB_USERNAME }}/auto_bangumi + # generate Docker tags based on the following events/attributes + tags: | + type=ref,event=release - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -31,4 +42,5 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/auto_bangumi:latest \ No newline at end of file + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file