Skip to content

Commit

Permalink
feat: use github action to build multi-arch image to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
guangzhengli committed Apr 6, 2023
1 parent 87bf030 commit 9460af4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push chatfiles image
uses: docker/build-push-action@v4
with:
context: ./chatfiles/
push: true
tags: guangzhengli/chatfiles:latest
dockerfile: ./<path-to-dockerfile>/Dockerfile
-
name: Build and push chatfiles-ui image
uses: docker/build-push-action@v4
with:
context: ./chatfiles-ui/
push: true
tags: guangzhengli/chatfiles-ui:latest
dockerfile: ./<path-to-dockerfile>/Dockerfile

0 comments on commit 9460af4

Please sign in to comment.