diff --git a/.dockerignore b/.dockerignore index 349e2c3..398352c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,9 +2,6 @@ .ipynb_checkpoints .vscode .idea -.git -.gitignore -.gitattributes .mypy_cache .pytest_cache __pycache__ @@ -15,25 +12,11 @@ cache/** src/bench/tmp/*.csv *.~lock.* .DS_Store -*.json -*.so -*.log -temp/ tmp/ docs/ *.md -dist/ build/ -*.egg-info -*.egg -site/ tests/ *.pyc *.env src/bench/ -.coverage -.readthedocs.yaml -codecov.yml -comparison.log -coverage.lcov -LICENSE diff --git a/.github/workflows/docker-build.yml.txt b/.github/workflows/docker-build.yml similarity index 97% rename from .github/workflows/docker-build.yml.txt rename to .github/workflows/docker-build.yml index 04c93d8..99103fe 100644 --- a/.github/workflows/docker-build.yml.txt +++ b/.github/workflows/docker-build.yml @@ -14,7 +14,7 @@ name: Docker Build env: REGISTRY: ghcr.io - IMAGE_NAME: auto-acmg + IMAGE_NAME: ${{ github.repository }} jobs: Image-Build-Push: diff --git a/.github/workflows/docker-cleanup-pr.yml.txt b/.github/workflows/docker-cleanup-pr.yml similarity index 100% rename from .github/workflows/docker-cleanup-pr.yml.txt rename to .github/workflows/docker-cleanup-pr.yml diff --git a/.github/workflows/docker-cleanup-untagged.yml.txt b/.github/workflows/docker-cleanup-untagged.yml similarity index 100% rename from .github/workflows/docker-cleanup-untagged.yml.txt rename to .github/workflows/docker-cleanup-untagged.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..9ada3ae --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,45 @@ +name: Release + +on: + release: + types: [created] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + + Container-Release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + lfs: 'true' + submodules: recursive + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=ref,event=branch + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + file: utils/docker/Dockerfile + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + push: true diff --git a/.gitignore b/.gitignore index f1d529a..e73fa36 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,10 @@ cache/** # Prediction file prediction.json +# Seqrepo archives +seqrepo.tar.gz +seqrepo_master.tar.gz + # DS_Store file .DS_Store diff --git a/Dockerfile b/utils/docker/Dockerfile similarity index 100% rename from Dockerfile rename to utils/docker/Dockerfile