Skip to content

Commit

Permalink
chore: github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Li committed Jul 19, 2022
1 parent 3257985 commit 630ff73
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and push image

on:
push:
branches: ["master"]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Hop Registry
uses: docker/login-action@v2
with:
registry: registry.hop.io
username: ${{ secrets.HOP_USERNAME }}
password: ${{ secrets.HOP_PAT }}
-
name: Build and push
run: |-
docker build --tag registry.hop.io/art/api . --platform=linux/amd64
docker push registry.hop.io/art/api

0 comments on commit 630ff73

Please sign in to comment.