diff --git a/actions/utils/parse_workspace/action.yml b/actions/utils/parse_workspace/action.yml index a42334a4..a4bc3f60 100644 --- a/actions/utils/parse_workspace/action.yml +++ b/actions/utils/parse_workspace/action.yml @@ -33,11 +33,13 @@ runs: workspace_contents = f.read() workspace_contents_yaml = yaml.safe_load(workspace_contents) + base_dir = os.path.abspath(os.path.dirname(workspace)) + output_obj = [ { 'name': location['location_name'], - 'directory': location.get('build', {'directory': '.'}).get('directory'), - 'build_folder': location.get('build', {'directory': '.'}).get('directory'), + 'directory': os.path.join(base_dir, location.get('build', {'directory': '.'}).get('directory')), + 'build_folder': os.path.join(base_dir, location.get('build', {'directory': '.'}).get('directory')), 'registry': location.get('build', {'directory': '.'}).get('registry'), 'location_file': str(workspace), } diff --git a/sample-repo/dagster_cloud.yaml b/sample-repo/dagster_cloud.yaml index 615f65d5..c0db60e1 100644 --- a/sample-repo/dagster_cloud.yaml +++ b/sample-repo/dagster_cloud.yaml @@ -3,5 +3,5 @@ locations: code_source: python_file: repo.py build: - directory: ./sample-repo + directory: . registry: 764506304434.dkr.ecr.us-west-2.amazonaws.com/branch-deployments-gh-action-test