forked from Waseju/root-tissue-segmentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from qbic-pipelines/fix/qpb-review
Fix/qpb-review
- Loading branch information
Showing
12 changed files
with
179 additions
and
36 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,38 @@ | ||
name: Docker push of root_tissue_segmentation to GHCR | ||
# This builds the docker image and pushes it to GHCR | ||
# Runs on qbic-pipelines repo releases and push event to 'dev' branch (PR merges) | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
push_github: | ||
name: Push new root_tissue_segmentation image to GHCR | ||
runs-on: ubuntu-latest | ||
# Only run for the qbic-pipelines repo, for releases and merged PRs | ||
if: ${{ github.repository == 'qbic-pipelines/root-tissue-segmentation-core' }} | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build new docker image | ||
run: docker build --no-cache . -t ghcr.io/qbic-pipelines/root_tissue_segmentation:latest | ||
|
||
- name: Log in to registry | ||
# Update the personal access token to GITHUB_TOKEN | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | ||
|
||
- name: Push image to GHCR (dev) | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
docker tag ghcr.io/qbic-pipelines/root_tissue_segmentation:latest ghcr.io/qbic-pipelines/root_tissue_segmentation:dev | ||
docker push ghcr.io/qbic-pipelines/root_tissue_segmentation:dev | ||
- name: Push image to GHCR (release) | ||
if: ${{ github.event_name == 'release' }} | ||
run: | | ||
docker tag ghcr.io/qbic-pipelines/root_tissue_segmentation:latest ghcr.io/qbic-pipelines/root_tissue_segmentation:${{ github.event.release.tag_name }} | ||
docker push ghcr.io/qbic-pipelines/root_tissue_segmentation:${{ github.event.release.tag_name }} |
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
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
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
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
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