Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Simon Oliver Tveit
cnaas-nms-backup
Commits
1f3033c6
Unverified
Commit
1f3033c6
authored
Sep 20, 2022
by
Johan Marcusson
Committed by
GitHub
Sep 20, 2022
Browse files
Merge pull request #255 from Uninett/sikt.build_workflow_image_from_correct_repo
Build the test docker image from the source repo
parents
cede4dd0
9e4ab171
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/run-unit-tests.yml
View file @
1f3033c6
...
...
@@ -42,11 +42,15 @@ jobs:
shell
:
bash
run
:
echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
-
name
:
Get repo URL
shell
:
bash
run
:
echo "CNAAS_REPO=$(echo ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY})" >> $GITHUB_ENV
-
name
:
Print branch name
run
:
echo ${{ env.BRANCH_NAME }}
run
:
echo ${{ env.BRANCH_NAME }}
at ${{ env.CNAAS_REPO }}
-
name
:
Build docker
run
:
docker-compose -f docker/docker-compose_test.yaml build --build-arg BUILDBRANCH=${{ env.BRANCH_NAME }}
run
:
docker-compose -f docker/docker-compose_test.yaml build --build-arg
GITREPO_BASE=${{ env.CNAAS_REPO }} --build-arg
BUILDBRANCH=${{ env.BRANCH_NAME }}
-
name
:
Start docker
run
:
docker-compose -f docker/docker-compose_test.yaml up -d
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment