Merge branch 'main' into dboreham/deployment-scripting
This commit is contained in:
		
						commit
						20f059705b
					
				| @ -12,7 +12,7 @@ jobs: | |||||||
|       - name: "Clone project repository" |       - name: "Clone project repository" | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - name: "Install Python" |       - name: "Install Python" | ||||||
|         uses: cerc-io/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
|         with: |         with: | ||||||
|           python-version: '3.8' |           python-version: '3.8' | ||||||
|       - name: "Print Python version" |       - name: "Print Python version" | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ jobs: | |||||||
|           build_tag=$(./scripts/create_build_tag_file.sh) |           build_tag=$(./scripts/create_build_tag_file.sh) | ||||||
|           echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT |           echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT | ||||||
|       - name: "Install Python" |       - name: "Install Python" | ||||||
|         uses: cerc-io/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
|         with: |         with: | ||||||
|           python-version: '3.8' |           python-version: '3.8' | ||||||
|       - name: "Print Python version" |       - name: "Print Python version" | ||||||
| @ -37,7 +37,7 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           cp ${{ steps.build.outputs.package-file }} ./laconic-so |           cp ${{ steps.build.outputs.package-file }} ./laconic-so | ||||||
|       - name: "Create release" |       - name: "Create release" | ||||||
|         uses: cerc-io/action-gh-release@gitea-v1 |         uses: https://gitea.com/cerc-io/action-gh-release@gitea-v2 | ||||||
|         with: |         with: | ||||||
|           tag_name: ${{ steps.build-info.outputs.build-tag }} |           tag_name: ${{ steps.build-info.outputs.build-tag }} | ||||||
|           # On the publish test branch, mark our release as a draft |           # On the publish test branch, mark our release as a draft | ||||||
|  | |||||||
| @ -20,7 +20,7 @@ jobs: | |||||||
|       - name: "Clone project repository" |       - name: "Clone project repository" | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - name: "Install Python" |       - name: "Install Python" | ||||||
|         uses: cerc-io/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
|         with: |         with: | ||||||
|           python-version: '3.8' |           python-version: '3.8' | ||||||
|       - name: "Print Python version" |       - name: "Print Python version" | ||||||
|  | |||||||
| @ -20,7 +20,7 @@ jobs: | |||||||
|       - name: "Clone project repository" |       - name: "Clone project repository" | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - name: "Install Python" |       - name: "Install Python" | ||||||
|         uses: cerc-io/setup-python@v4 |         uses: actions/setup-python@v4 | ||||||
|         with: |         with: | ||||||
|           python-version: '3.8' |           python-version: '3.8' | ||||||
|       - name: "Print Python version" |       - name: "Print Python version" | ||||||
|  | |||||||
| @ -24,9 +24,9 @@ services: | |||||||
|       "./wait-for-it.sh -h ${CERC_L1_HOST:-$${DEFAULT_CERC_L1_HOST}} -p ${CERC_L1_PORT:-$${DEFAULT_CERC_L1_PORT}} -s -t 60 -- ./run.sh" |       "./wait-for-it.sh -h ${CERC_L1_HOST:-$${DEFAULT_CERC_L1_HOST}} -p ${CERC_L1_PORT:-$${DEFAULT_CERC_L1_PORT}} -s -t 60 -- ./run.sh" | ||||||
|     volumes: |     volumes: | ||||||
|       - ../config/network/wait-for-it.sh:/app/packages/contracts-bedrock/wait-for-it.sh |       - ../config/network/wait-for-it.sh:/app/packages/contracts-bedrock/wait-for-it.sh | ||||||
|       - ../container-build/cerc-optimism-contracts/hardhat-tasks/verify-contract-deployment.ts:/app/packages/contracts-bedrock/tasks/verify-contract-deployment.ts |       - ../config/optimism-contracts/hardhat-tasks/verify-contract-deployment.ts:/app/packages/contracts-bedrock/tasks/verify-contract-deployment.ts | ||||||
|       - ../container-build/cerc-optimism-contracts/hardhat-tasks/rekey-json.ts:/app/packages/contracts-bedrock/tasks/rekey-json.ts |       - ../config/optimism-contracts/hardhat-tasks/rekey-json.ts:/app/packages/contracts-bedrock/tasks/rekey-json.ts | ||||||
|       - ../container-build/cerc-optimism-contracts/hardhat-tasks/send-balance.ts:/app/packages/contracts-bedrock/tasks/send-balance.ts |       - ../config/optimism-contracts/hardhat-tasks/send-balance.ts:/app/packages/contracts-bedrock/tasks/send-balance.ts | ||||||
|       - ../config/fixturenet-optimism/optimism-contracts/update-config.js:/app/packages/contracts-bedrock/update-config.js |       - ../config/fixturenet-optimism/optimism-contracts/update-config.js:/app/packages/contracts-bedrock/update-config.js | ||||||
|       - ../config/fixturenet-optimism/optimism-contracts/run.sh:/app/packages/contracts-bedrock/run.sh |       - ../config/fixturenet-optimism/optimism-contracts/run.sh:/app/packages/contracts-bedrock/run.sh | ||||||
|       - l2_accounts:/l2-accounts |       - l2_accounts:/l2-accounts | ||||||
|  | |||||||
| @ -85,12 +85,13 @@ def down(ctx, delete_volumes, extra_args): | |||||||
| 
 | 
 | ||||||
| # stop is the preferred alias for down | # stop is the preferred alias for down | ||||||
| @command.command() | @command.command() | ||||||
|  | @click.option("--delete-volumes/--preserve-volumes", default=False, help="delete data volumes") | ||||||
| @click.argument('extra_args', nargs=-1)  # help: command: down <service1> <service2> | @click.argument('extra_args', nargs=-1)  # help: command: down <service1> <service2> | ||||||
| @click.pass_context | @click.pass_context | ||||||
| def stop(ctx, extra_args): | def stop(ctx, delete_volumes, extra_args): | ||||||
|     # TODO: add cluster name and env file here |     # TODO: add cluster name and env file here | ||||||
|     ctx.obj = make_deploy_context(ctx) |     ctx.obj = make_deploy_context(ctx) | ||||||
|     down_operation(ctx, extra_args, None) |     down_operation(ctx, delete_volumes, extra_args, None) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @command.command() | @command.command() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user