-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec_release.yaml
36 lines (32 loc) · 1.22 KB
/
buildspec_release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: 0.2
env:
shell: bash
variables:
DEFAULT_PASSWORD: "ailab"
ASSET_ID: ""
AWS_USER_NAME: "release_user"
MAKE_AMI_PUBLIC_OPTION: "--no-make-ami-public"
secrets-manager:
DOCKER_REGISTRY_USER: "Dockerhub:User"
DOCKER_REGISTRY_PASSWORD: "Dockerhub:AccessToken"
phases:
install:
runtime-versions:
python: 3.10
commands:
- git submodule update --init --recursive
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH=$PATH:$HOME/.local/bin
- poetry env use $(command -v "python3.10")
- poetry install
pre_build:
commands:
- echo ASSET_ID is "$ASSET_ID"
- echo DEFAULT_PASSWORD is "$DEFAULT_PASSWORD"
- echo RELEASE_ID is "$RELEASE_ID"
- echo MAKE_AMI_PUBLIC_OPTION is "$MAKE_AMI_PUBLIC_OPTION"
build:
commands:
- poetry run python3 -m exasol.ds.sandbox.main create-vm --default-password "$DEFAULT_PASSWORD" --asset-id "$ASSET_ID" $MAKE_AMI_PUBLIC_OPTION
- poetry run python3 -m exasol.ds.sandbox.main create-docker-image --version "$ASSET_ID" --publish --log-level info
- poetry run python3 -m exasol.ds.sandbox.main update-release --release-id "$RELEASE_ID" --asset-id "$ASSET_ID"