Update to nf-core last v2 version; incorporating GTDB #273
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: docker mock data reporter CI/CD | |
on: | |
push: | |
paths: | |
- "workflows/**" | |
- "subworkflows/**" | |
- "modules/**" | |
- "main.nf" | |
- "lib/**" | |
- "conf/**" | |
- "docker/modules/**" | |
branches: | |
- main | |
- dev | |
pull_request: | |
paths: | |
- "workflows/**" | |
- "subworkflows/**" | |
- "modules/**" | |
- "main.nf" | |
- "lib/**" | |
- "conf/**" | |
- "docker/modules/**" | |
branches: | |
- main | |
- dev | |
jobs: | |
docker_mock_data_reporter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: jasonkwan/autometa-nf-modules-mock_data_reporter | |
- name: Login to DockerHub | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Autometa nextflow module mock_data_reporter docker build and push | |
id: nextflow_mock_data_reporter_module_docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./docker/modules/mock_data_reporter.Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |