Skip to content

Commit 42b3156

Browse files
committed
Propagate deploy channel information to deploy-cvdremote-debian-package
1 parent 68dd54c commit 42b3156

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/actions/deploy-cuttlefish-cvdremote-debian-package/action.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: 'Deploy debian package cuttlefish-cvdremote'
22
inputs:
3+
deploy-channel:
4+
required: true
35
path:
46
required: true
57
runs:
@@ -11,9 +13,15 @@ runs:
1113
version: '>= 363.0.0'
1214
- name: Deploy deb package into Artifact Registry
1315
run: |
16+
if [[ ${{ inputs.deploy-channel }} == "stable" ]]; then
17+
REPO=android-cuttlefish
18+
else
19+
REPO=android-cuttlefish-${{ inputs.deploy-channel }}
20+
fi
21+
1422
gcloud --project=android-cuttlefish-artifacts \
1523
artifacts apt upload \
16-
android-cuttlefish-nightly \
24+
${REPO} \
1725
--location=us \
1826
--source=${{ inputs.path }}
1927
shell: bash

.github/workflows/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
- name: Deploy debian package cuttlefish-cvdremote
7373
uses: ./.github/actions/deploy-cuttlefish-cvdremote-debian-package
7474
with:
75+
deploy-channel: ${{ inputs.deploy-channel }}
7576
path: ${{ env.path }}
7677

7778
deploy-cuttlefish-cvdremote-arm64-debian-package:
@@ -96,6 +97,7 @@ jobs:
9697
- name: Deploy debian package cuttlefish-cvdremote
9798
uses: ./.github/actions/deploy-cuttlefish-cvdremote-debian-package
9899
with:
100+
deploy-channel: ${{ inputs.deploy-channel }}
99101
path: ${{ env.path }}
100102

101103
deploy-cuttlefish-cloud-orchestrator-amd64-docker-image:

0 commit comments

Comments
 (0)