-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 957 Bytes
/
robocorp-deploy.yml
File metadata and controls
33 lines (29 loc) · 957 Bytes
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
name: Deploy to Robocorp Control Room
on:
workflow_call:
inputs:
environment:
description: 'Environment'
type: string
required: true
jobs:
call-robocorp-install-dependencies:
uses: ./.github/workflows/robocorp-install-dependencies.yml
deploy:
needs: call-robocorp-install-dependencies
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache/restore@v3
with:
path: |
~/.robocorp
/usr/local/bin/rcc
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/robot.yaml', '**/conda.yaml') }}
- name: Deploy to Robocorp Control Room
run: |
rcc cloud push --robot ${{ vars.ROBOT_ID }} \
--workspace ${{ vars.WORKSPACE_ID }} \
--account ${{ secrets.CR_ACCESS_CREDENTIALS }}:${{ vars.CR_ENDPOINT_URL }}