Skip to content

Commit

Permalink
Fix docker related CI workflows (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Sep 17, 2024
1 parent e9ef3f5 commit 25542a0
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
.ipynb_checkpoints
.vscode
.idea
.git
.gitignore
.gitattributes
.mypy_cache
.pytest_cache
__pycache__
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: Docker Build

env:
REGISTRY: ghcr.io
IMAGE_NAME: auto-acmg
IMAGE_NAME: ${{ github.repository }}

jobs:
Image-Build-Push:
Expand Down
File renamed without changes.
45 changes: 45 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ cache/**
# Prediction file
prediction.json

# Seqrepo archives
seqrepo.tar.gz
seqrepo_master.tar.gz

# DS_Store file
.DS_Store

Expand Down
File renamed without changes.

0 comments on commit 25542a0

Please sign in to comment.