Create docker-build.yml

This commit is contained in:
VectorAICreations 2025-05-25 00:21:38 -03:00 committed by GitHub
parent 42e6b9e95b
commit f20a9632b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

30
.github/workflows/docker-build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build and Push Docker image
on:
push:
branches: ["fix/timestamps"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/kokoro-fastapi:fix-timestamps