-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split up dockerhub push workflows, don't limit aws to a branch
- Loading branch information
Showing
3 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: nf-core Docker push (dev) | ||
# This builds the docker image and pushes it to DockerHub | ||
# Runs on nf-core repo releases and push event to 'dev' branch (PR merges) | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
push_dockerhub: | ||
name: Push new dev Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
# Only run for the nf-core repo, for releases and merged PRs | ||
if: ${{ github.repository == 'nf-core/testpipeline' }} | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build new docker image | ||
run: docker build --no-cache . -t nfcore/testpipeline:dev | ||
|
||
- name: Push Docker image to DockerHub (dev) | ||
run: | | ||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
docker push nfcore/testpipeline:dev |
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