Skip to content

Commit

Permalink
add gha
Browse files Browse the repository at this point in the history
  • Loading branch information
chinaboard committed Sep 29, 2023
1 parent 54132de commit 9e82ba7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:
branches: [ master ]

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

env:
IMAGE_NAME: chinaboard/whisperx-service

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Log into registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
username: chinaboard
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push image
run: |
docker build -t ${{ env.IMAGE_NAME }} -f worker.Dockerfile .
docker push ${{ env.IMAGE_NAME }}

0 comments on commit 9e82ba7

Please sign in to comment.