Skip to content

Commit 75d752d

Browse files
committed
Testing Artifact Registry migration
1 parent 8c72ec9 commit 75d752d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/deployment.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deployment
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
deploy-cuttlefish-cvdremote-x86_64-debian-package:
8+
if: ${{ github.repository_owner == 'google' }}
9+
environment: deployment
10+
runs-on: ubuntu-24.04
11+
container:
12+
image: debian@sha256:9258a75a7e4323c9e5562b361effc84ee747920116d8adfc98a465a5cdc9150e # debian:bookworm-20250407 (amd64)
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
16+
- name: Build debian package cuttlefish-cvdremote
17+
uses: ./.github/actions/build-cuttlefish-cvdremote-debian-package
18+
with:
19+
arch: x86_64
20+
- name: Authentication on GCP project android-cuttlefish-artifacts
21+
uses: 'google-github-actions/auth@v2'
22+
with:
23+
credentials_json: '${{ secrets.ARTIFACT_REGISTRY_UPLOADER }}'
24+
- name: Deploy deb package into Artifact Registry
25+
if: ${{ github.repository_owner == 'google' }}
26+
run: |
27+
gcloud --project=android-cuttlefish-artifacts \
28+
artifacts apt upload \
29+
android-cuttlefish-nightly \
30+
--location=asia \
31+
--source=build/debian/cuttlefish-cvdremote_*.deb

0 commit comments

Comments
 (0)