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

[AGENT-5619] Add Harness pipeline to publish airflow-provider-datarobot-early-access #95

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
71 changes: 71 additions & 0 deletions .harness/build_and_publish_pipy_early_access.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
pipeline:
name: build_and_publish_pipy_early_access
identifier: build_and_publish_pipy_early_access
projectIdentifier: airflowproviderdatarobot
orgIdentifier: AGENTS
tags: {}
properties:
ci:
codebase:
connectorRef: account.svc_harness_git1
repoName: airflow-provider-datarobot
build: <+input>
stages:
- parallel:
- stage:
name: build_and_publish_early_access
identifier: build_and_publish_early_access
description: ""
type: CI
spec:
infrastructure:
type: KubernetesDirect
spec:
connectorRef: account.cigeneral
namespace: harness-delegate-ng
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
cloneCodebase: true
execution:
steps:
- step:
type: Run
name: pip install step
identifier: Run_Pip
spec:
connectorRef: account.dockerhub_datarobot_read
image: python:3.9
shell: Bash
command: |-
set -exuo pipefail
pip install -U pip
pip install --upgrade pip wheel setuptools
pip install -r requirements.txt
pip install --upgrade build twine
echo "Building wheel..."
python -m build --no-isolation
echo "Building wheel...OK"
echo $(ls)
- step:
type: Run
name: publish_early_access
identifier: Run_Publish
spec:
envVariables:
PYPI_TOKEN: <+secrets.getValue("pypi-airflow-provider-datarobot-early-access")>
connectorRef: account.dockerhub_datarobot_read
image: python:3.9
shell: Bash
command: |-
set -exuo pipefail
pip install --upgrade twine
echo "Publishing wheel to pip..."
echo $(ls dist)
twine upload dist/*.whl \
--username "__token__" \
--password "$PYPI_TOKEN" \
--non-interactive \
--verbose \
--disable-progress-bar
echo "Finished successfully!"