Skip to content

Commit

Permalink
updated github actions generation
Browse files Browse the repository at this point in the history
  • Loading branch information
srastatter committed Oct 5, 2023
1 parent 7dc75c6 commit 0de011c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.2.5] - 2023-10-05

### Added

### Changed

### Fixed

- Fixed bug with generating .github/workflows directories

## [1.2.4] - 2023-10-03

### Added
Expand Down
4 changes: 2 additions & 2 deletions google_cloud_automlops/AutoMLOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
GENERATED_GITHUB_ACTIONS_FILE,
GENERATED_DEFAULTS_FILE,
GENERATED_DIRS,
GENERATED_GITHUB_DIRS,
GENERATED_RESOURCES_SH_FILE,
GENERATED_SERVICES_DIRS,
GENERATED_TERRAFORM_DIRS,
GITHUB_DIR,
OUTPUT_DIR
)
from google_cloud_automlops.utils.utils import (
Expand Down Expand Up @@ -278,7 +278,7 @@ def generate(
if provisioning_framework == Provisioner.TERRAFORM.value:
make_dirs(GENERATED_TERRAFORM_DIRS)
if deployment_framework == Deployer.GITHUB_ACTIONS.value:
make_dirs(GITHUB_DIR)
make_dirs(GENERATED_GITHUB_DIRS)

# Set derived vars if none were given for certain variables
derived_artifact_repo_name = f'{naming_prefix}-artifact-registry' if artifact_repo_name is None else artifact_repo_name
Expand Down
2 changes: 1 addition & 1 deletion google_cloud_automlops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
series of directories to support the creation of Vertex Pipelines.
"""
# pylint: disable=invalid-name
__version__ = '1.2.4'
__version__ = '1.2.5'
__author__ = 'Sean Rastatter'
__credits__ = 'Google'
10 changes: 7 additions & 3 deletions google_cloud_automlops/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

# AutoMLOps file paths
BASE_DIR = 'AutoMLOps/'
GITHUB_DIR = BASE_DIR + '.github/workflows/'
GENERATED_DEFAULTS_FILE = BASE_DIR + 'configs/defaults.yaml'
GENERATED_PIPELINE_SPEC_SH_FILE = BASE_DIR + 'scripts/build_pipeline_spec.sh'
GENERATED_BUILD_COMPONENTS_SH_FILE = BASE_DIR + 'scripts/build_components.sh'
Expand All @@ -67,7 +66,7 @@
GENERATED_RESOURCES_SH_FILE = BASE_DIR + 'provision/provision_resources.sh'
GENERATED_PUBLISH_TO_TOPIC_FILE = BASE_DIR + 'scripts/publish_to_topic.sh'
GENERATED_CLOUDBUILD_FILE = BASE_DIR + 'cloudbuild.yaml'
GENERATED_GITHUB_ACTIONS_FILE = GITHUB_DIR + 'github_actions.yaml'
GENERATED_GITHUB_ACTIONS_FILE = BASE_DIR + '.github/workflows/github_actions.yaml'
GENERATED_PIPELINE_REQUIREMENTS_FILE = BASE_DIR + 'pipelines/requirements.txt'
GENERATED_PIPELINE_FILE = BASE_DIR + 'pipelines/pipeline.py'
GENERATED_PIPELINE_RUNNER_FILE = BASE_DIR + 'pipelines/pipeline_runner.py'
Expand Down Expand Up @@ -97,7 +96,12 @@

GENERATED_TERRAFORM_DIRS = [
BASE_DIR + 'provision/state_bucket',
BASE_DIR + 'provision/environment',
BASE_DIR + 'provision/environment'
]

GENERATED_GITHUB_DIRS = [
BASE_DIR + '.github',
BASE_DIR + '.github/workflows'
]

# temporary files
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='google-cloud-automlops',
version='1.2.4',
version='1.2.5',
description='Build MLOps Pipelines in Minutes.',
long_description=readme_contents,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 0de011c

Please sign in to comment.