Skip to content
Snippets Groups Projects
Commit e9d21e9b authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

replace hardcoded registry with variable

parent 8cd9d91e
No related branches found
No related tags found
1 merge request!184Change go module paths
Pipeline #80371 canceled
...@@ -39,5 +39,5 @@ build-docker: ...@@ -39,5 +39,5 @@ build-docker:
- docker push $DOCKER_IMAGE_SHA - docker push $DOCKER_IMAGE_SHA
- docker tag $DOCKER_IMAGE_SHA $TAG - docker tag $DOCKER_IMAGE_SHA $TAG
- docker push $TAG - docker push $TAG
- docker build --target installer --build-arg GITLAB_USER=$GO_MODULES_USER --build-arg GITLAB_TOKEN=$GO_MODULES_ACCESS_TOKEN --build-arg BUILDARGS=$BUILDARGS -t registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID} . - docker build --target installer --build-arg GITLAB_USER=$GO_MODULES_USER --build-arg GITLAB_TOKEN=$GO_MODULES_ACCESS_TOKEN --build-arg BUILDARGS=$BUILDARGS -t ${CI_REGISTRY_IMAGE}:testing_${CI_PIPELINE_ID} .
- docker push registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID} - docker push ${CI_REGISTRY_IMAGE}:testing_${CI_PIPELINE_ID}
\ No newline at end of file \ No newline at end of file
.integration-test: &integration-test .integration-test: &integration-test
image: registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID} image: ${CI_REGISTRY_IMAGE}:testing_${CI_PIPELINE_ID}
stage: integration-test stage: integration-test
needs: needs:
- job: "containerlab:deploy" - job: "containerlab:deploy"
...@@ -34,7 +34,7 @@ integration-test:api: ...@@ -34,7 +34,7 @@ integration-test:api:
- go test -race -v -run TestApiIntegration - go test -race -v -run TestApiIntegration
.test: &test .test: &test
image: registry.code.fbi.h-da.de/cocsn/gosdn:testing_${CI_PIPELINE_ID} image: ${CI_REGISTRY_IMAGE}:testing_${CI_PIPELINE_ID}
stage: test stage: test
allow_failure: true allow_failure: true
variables: variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment