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 2724404
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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: Replace char '#' to '_' from GITHUB_REF_NAME env variable
id: github_ref_name_replacement_step
uses: frabert/[email protected]
with:
pattern: '#'
string: ${{ env.GITHUB_REF_NAME }}
replace-with: '_'
- run: echo ${{ github.ref_name }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: xserrat/facebook-demucs:${{ steps.github_ref_name_replacement_step.outputs.replaced }}

0 comments on commit 2724404

Please sign in to comment.