Add doccker file for cellranger atac #1
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
name: Test Spaceranger Version | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'dockerhub_repos/cellranger-atac/**' | |
jobs: | |
test_cellranger_version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Validate version consistency | |
run: | | |
# Extract the expected version from the 'spaceranger --version' output | |
VERSION=$(docker run ccrsfifx/cellranger-atac:2.1.0 cellranger-atac --version | awk '{print $2}') | |
# Compare with the Docker Hub tag | |
if [[ "$VERSIONV" != "cellranger-atac-2.1.0" ]]; then | |
echo "Error: Cellranger-atac version ($VERSIONV) doesn't match Docker Hub tag (${{ steps.tag-info.outputs.tag }})" | |
exit 1 | |
else | |
echo "Cellranger-atac version matches Docker Hub tag." | |
fi |