Skip to content

Commit 88e5017

Browse files
gitpod and github actions
1 parent 597f667 commit 88e5017

5 files changed

Lines changed: 54 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Test container build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches_ignore: []
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- run: docker build .
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish release to Docker Hub
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Get release version
14+
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
15+
- name: Publish to Registry
16+
uses: elgohr/Publish-Docker-Github-Action@3.01
17+
with:
18+
name: snakemake/snakemake
19+
username: ${{ secrets.DOCKER_USERNAME }}
20+
password: ${{ secrets.DOCKER_TOKEN }}
21+
tags: "${{ env.RELEASE_VERSION }},stable"

.gitpod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
image: snakemake/snakemake:v6.0.0
2+
tasts:
3+
- init: Cleanup tutorial environment
4+
command: rm Snakefile .gitpod.yml upload_google_storage.py Dockerfile
5+
- activate-env: Activate environment
6+
command: conda activate snakemake-tutorial

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM condaforge/mambaforge
2+
ENV SHELL /bin/bash
3+
ADD environment.yaml .
4+
RUN mamba env create -n snakemake-tutorial -f environment.yaml

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/snakemake/snakemake-tutorial-data)
2+
13
# Example data for the Snakemake tutorial
24

35
This repository hosts the data needed for the [Snakemake tutorial](https://snakemake.readthedocs.io/en/stable/tutorial/tutorial.html).
46

7+
8+
<details>
9+
<summary>Click for cloud upload instructions.</summary>
10+
511
## Uploaders
612

713
### Google Cloud Storage
@@ -15,7 +21,7 @@ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
1521

1622
And install the google-cloud-storage client:
1723

18-
```bsah
24+
```bash
1925
pip install google-cloud-storage
2026
```
2127

@@ -76,3 +82,4 @@ You should then be able to see your files in Storage! Good job!
7682

7783
![.aux/upload-google-storage.png](.aux/upload-google-storage.png)
7884

85+
</details>

0 commit comments

Comments
 (0)