From 56b662da3c2bf8829b336c10f050d5f71669b0d4 Mon Sep 17 00:00:00 2001 From: Fedir Zadniprovskyi Date: Sun, 26 May 2024 17:08:52 -0700 Subject: [PATCH] ci: enable docker push --- .github/workflows/docker-build-and-push.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yaml b/.github/workflows/docker-build-and-push.yaml index 3dbf430..22e2dbd 100644 --- a/.github/workflows/docker-build-and-push.yaml +++ b/.github/workflows/docker-build-and-push.yaml @@ -1,10 +1,12 @@ name: docker-build-and-push on: + workflow_dispatch: push: branches: - "master" -# TODO: releases + tags: + - 'v*' jobs: docker: @@ -35,6 +37,8 @@ jobs: prefix=${{ matrix.tag-prefix }} tags: | type=sha + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push @@ -42,10 +46,10 @@ jobs: with: context: . file: ${{ matrix.dockerfile }} - # push: true - # TODO: multi-platform + push: true + # TODO: # platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} - # TODO: cache + # TODO: # cache-from: type=registry,ref=fedirz/faster-whisper-server:buildcache # cache-to: type=registry,ref=fedirz/faster-whisper-server:buildcache,mode=max