Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab migration changes #532

Merged
merged 4 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ jobs:
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: "https://git.sinergise.com/eo/code/sentinelhub-py-dev/"
args: "https://hello.planet.com/code/eo/code/sentinelhub-py-dev/"
env:
FOLLOW_TAGS: "true"
GITLAB_HOSTNAME: "git.sinergise.com"
GITLAB_HOSTNAME: "hello.planet.com/code"
GITLAB_USERNAME: "github-action"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: "354"
GITLAB_PROJECT_ID: "9711"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
-F ref=main \
-F variables[CUSTOM_RUN_TAG]=auto \
-F variables[LAYER_NAME]=dotai-eo \
https://git.sinergise.com/api/v4/projects/1031/trigger/pipeline
https://hello.planet.com/code/api/v4/projects/9723/trigger/pipeline
20 changes: 14 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
default:
tags:
- sinergise-lju

variables:
BASE_IMAGE: $CI_REGISTRY_IMAGE/python-3.9-base:latest

stages:
- update
- test
Expand All @@ -6,20 +13,21 @@ update_base_image:
stage: update
image: docker:latest
rules:
- if: '$UPDATE_BASE_IMAGE == "true"'
- if: $UPDATE_BASE_IMAGE == "true"

script:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- docker build --file=".gitlab/docker/Dockerfile" --tag="$BASE_IMAGE" .
- docker push "$BASE_IMAGE"
- echo $CI_JOB_TOKEN | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -f docker/Dockerfile -t $BASE_IMAGE .
- docker push $BASE_IMAGE

run_sh_integration_tests:
stage: test
image: "$BASE_IMAGE"
image: $BASE_IMAGE
dependencies: []
needs: []
rules:
- when: always
if: '$UPDATE_BASE_IMAGE != "true"'
if: $UPDATE_BASE_IMAGE != "true"
script:
- pip install -e .[AWS,DEV]
- pytest -m "sh_integration"
File renamed without changes.
Loading