-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
207 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Docker Hub Dev | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USER_NAME }} | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Free disk space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: true | ||
|
||
- name: Build and push the dev image | ||
id: docker_build_dev | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: "./docker/Dockerfile-Dev" | ||
platforms: linux/amd64,linux/arm64 | ||
allow: network.host | ||
github-token: ${{ github.token }} | ||
tags: baxtree/subaligner:dev | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Docker Hub Release Extra | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USER_NAME }} | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Extract the tag | ||
id: tag | ||
run: | | ||
echo "SUBALIGNER_TAG=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | ||
- name: Free disk space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: true | ||
|
||
- name: Build and push the Ubuntu 20 image | ||
id: docker_build_latest | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: "./docker/Dockerfile-Ubuntu20" | ||
platforms: linux/amd64,linux/arm64 | ||
allow: network.host | ||
github-token: ${{ github.token }} | ||
tags: | | ||
baxtree/subaligner:dev | ||
push: true | ||
|
||
- name: Remove the local Ubuntu 20 image | ||
run: | | ||
docker rmi -f baxtree/subaligner:${{ env.SUBALIGNER_TAG }}.u20 | ||
- name: Build and push the Fedora 34 image | ||
id: docker_build_fed34 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./docker | ||
file: "./docker/Dockerfile-Fedora34" | ||
build-args: | | ||
"RELEASE_VERSION=${{ env.SUBALIGNER_TAG }}" | ||
platforms: linux/amd64,linux/arm64 | ||
allow: network.host | ||
github-token: ${{ github.token }} | ||
tags: baxtree/subaligner:${{ env.SUBALIGNER_TAG }}.fed34 | ||
push: true | ||
|
||
- name: Remove the local Fedora 34 image | ||
run: | | ||
docker rmi -f baxtree/subaligner:${{ env.SUBALIGNER_TAG }}.fed34 | ||
- name: Build and push the ArchLinux image | ||
id: docker_build_arch | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./docker | ||
file: "./docker/Dockerfile-ArchLinux" | ||
build-args: | | ||
"RELEASE_VERSION=${{ env.SUBALIGNER_TAG }}" | ||
platforms: linux/amd64 | ||
allow: network.host | ||
github-token: ${{ github.token }} | ||
tags: baxtree/subaligner:${{ env.SUBALIGNER_TAG }}.arch | ||
push: true | ||
|
||
- name: Remove the local ArchLinux image | ||
run: | | ||
docker rmi -f baxtree/subaligner:${{ env.SUBALIGNER_TAG }}.arch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Helm | ||
uses: mamezou-tech/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Subaligner Dev Docker Image | ||
FROM ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Europe/London | ||
|
||
RUN mkdir -p /subaligner && chmod 755 /subaligner | ||
COPY subaligner /subaligner/subaligner | ||
COPY pyproject.toml /subaligner | ||
|
||
WORKDIR /subaligner | ||
|
||
RUN ["/bin/bash", "-c", "apt-get -y update &&\ | ||
apt-get -y install ffmpeg &&\ | ||
apt-get -y install espeak libespeak1 libespeak-dev espeak-data &&\ | ||
apt-get -y install libsndfile-dev &&\ | ||
apt-get -y install libhdf5-dev &&\ | ||
apt-get -y install python3-dev &&\ | ||
apt-get -y install python3-tk &&\ | ||
apt-get -y install python3-pip &&\ | ||
python3 -m pip install --upgrade pip &&\ | ||
python3 -m pip install --upgrade \"setuptools<65.0.0\" wheel &&\ | ||
python3 -m pip install -e . &&\ | ||
python3 -m pip install -e \".[harmony]\""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters