provisioning environment #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 |