Skip to content

Commit

Permalink
[#15] Add build-image.yaml workflow to build and publish to DockerHub…
Browse files Browse the repository at this point in the history
… the latest version
  • Loading branch information
xserrat committed Nov 13, 2022
1 parent 109dd72 commit 0479b25
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci

on:
push:
branches:
- 'issue#15-github-action'

jobs:
Build-Docker-Image:
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
with:
platforms: linux/amd64,linux/arm64
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: xserrat/facebook-demucs:${{ env.GITHUB_REF_NAME }}

0 comments on commit 0479b25

Please sign in to comment.