Skip to content

Commit

Permalink
Merge pull request #22 from FacerAin/feat/cicd
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
FacerAin authored Dec 4, 2023
2 parents 43dfec4 + b9f8056 commit 495d644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# repository checkout
- uses: actions/checkout@v2

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0

- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0

- name: Docker Login
uses: docker/login-action@v1.10.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build Image
working-directory: python
run: docker buildx build --platform linux/amd64,linux/arm64 -t syw5141/khugpt-agent:${{ steps.vars.outputs.tag }} --push .

0 comments on commit 495d644

Please sign in to comment.