Skip to content

Commit

Permalink
ci: enable docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed May 27, 2024
1 parent f043430 commit 56b662d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: docker-build-and-push

on:
workflow_dispatch:
push:
branches:
- "master"
# TODO: releases
tags:
- 'v*'

jobs:
docker:
Expand Down Expand Up @@ -35,17 +37,19 @@ 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
uses: docker/build-push-action@v5
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

0 comments on commit 56b662d

Please sign in to comment.