Skip to content
Snippets Groups Projects
Commit 1dbf6502 authored by Alex Kanitz's avatar Alex Kanitz
Browse files

test publishing

parent 7cb1abb6
No related branches found
No related tags found
1 merge request!5ci: add GitLab CI config
Pipeline #14459 failed
...@@ -4,14 +4,14 @@ default: ...@@ -4,14 +4,14 @@ default:
test: test:
rules: rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: script:
- docker build -t testimage:latest . - docker build -t testimage:latest .
- docker run --rm -it testimage:latest tests/test.sh - docker run --rm -it testimage:latest tests/test.sh
publish: test_and_publish:
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
script: script:
- export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"') - export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
- export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}:${VERSION}" - export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}:${VERSION}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment