-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.68 KB
/
main.yml
File metadata and controls
54 lines (47 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test Octo Actions
on:
push:
branches:
- main
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
OCTOPUS_SPACE: Default
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Octopus CLI
uses: OctopusDeploy/install-octopus-cli-action@v3.0.0
- name: create_release_octo_deploy
uses: OctopusDeploy/create-release-action@v3.0.4
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
OCTOPUS_SPACE: Default
id: "create_release"
with:
# The name of the project associated with this release.
project: "Run a script"
- name: Deploy the release in Octopus Deploy 🐙
uses: OctopusDeploy/deploy-release-action@v3
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
OCTOPUS_SPACE: Default
id: "queue_deployments"
with:
project: "Run a script"
release_number: ${{ steps.create_release.outputs.release_number }}
environments: Dev
- name: echoing
run: |
echo ${{ fromJson(steps.some_previous_deployment_step.outputs.server_tasks)[0].serverTaskId }}
- name: Await task in Octopus Deploy 🐙
uses: OctopusDeploy/await-task-action@v3
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
OCTOPUS_SPACE: Default
with:
server_task_id: ${{ fromJson(steps.some_previous_deployment_step.outputs.server_tasks)[0].serverTaskId }}