Skip to content

Commit

Permalink
Added CI for asic-agent-api
Browse files Browse the repository at this point in the history
  • Loading branch information
bakabtw authored Dec 26, 2022
1 parent 516dde6 commit 67155e2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build API

on:
release:
types: [published]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: ./api/
file: ./api/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USERNAME }}/asic-agent-api:latest

0 comments on commit 67155e2

Please sign in to comment.