Skip to content

provisioning environment #39

provisioning environment

provisioning environment #39

name: Release - Pull Request
on:
pull_request:
branches: [ "main" ]
env:
OCTOPUS_SPACE: 'SHIPPED23'
jobs:
build-and-push-image:
uses: MJRichardson/shipped23/.github/workflows/build-and-push-image.yaml@provision-env

Check failure on line 12 in .github/workflows/release-pull-request.yml

View workflow run for this annotation

GitHub Actions / Release - Pull Request

Invalid workflow file

The workflow is not valid. In .github/workflows/release-pull-request.yml (Line: 12, Col: 11): Error from called workflow MJRichardson/shipped23/.github/workflows/build-and-push-image.yaml@provision-env (Line: 8, Col: 16): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.branch-name.outputs.current_branch In .github/workflows/release-pull-request.yml (Line: 12, Col: 11): Error from called workflow MJRichardson/shipped23/.github/workflows/build-and-push-image.yaml@provision-env (Line: 11, Col: 16): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.image-tag.outputs.image
provision-environment-and-deploy:
permissions:
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Login to Octopus
uses: OctopusDeploy/login@v1
with:
server: https://michrich.octopus.app
service_account_id: 1269d528-af54-4ab9-8a4b-902ac894a865
- name: Run a runbook in Octopus Deploy 🐙
uses: OctopusDeploy/run-runbook-action@v3
with:
project: 'SHIPPED23'
runbook: 'Create branch environment'
variables: |
Branch:${{needs.build-and-push-image.outputs.branch}}
environments: |
Branch Template