diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 67bb19e..cbf5800 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -44,8 +44,17 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: name/app + tags: latest + - name: Build and push uses: docker/build-push-action@v5 with: context: . push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}