Skip to content

Commit 7b42915

Browse files
committed
Testing Artifact Registry migration
1 parent 8c72ec9 commit 7b42915

File tree

3 files changed

+51
-12
lines changed

3 files changed

+51
-12
lines changed
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: 'Build debian package cuttlefish-cvdremote'
2-
inputs:
3-
arch:
4-
required: true
2+
53
runs:
64
using: "composite"
75
steps:
@@ -16,13 +14,12 @@ runs:
1614
run: apt install -y config-package-dev debhelper-compat devscripts git golang
1715
shell: bash
1816
- name: Build package
19-
run: cd build/debian/cuttlefish_cvdremote && dpkg-buildpackage -i -uc -us -b
17+
run: |
18+
pushd build/debian/cuttlefish_cvdremote
19+
dpkg-buildpackage -i -uc -us -b
20+
popd
21+
mv build/debian/cuttlefish-cvdremote_*.deb .
2022
shell: bash
2123
- name: Install package
22-
run: dpkg -i build/debian/cuttlefish-cvdremote_*.deb || apt install -y
24+
run: dpkg -i cuttlefish-cvdremote_*.deb || apt install -y
2325
shell: bash
24-
- name: Upload debian package
25-
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
26-
with:
27-
name: cuttlefish-cvdremote-${{ inputs.arch }}
28-
path: build/debian/cuttlefish-cvdremote_*.deb

.github/workflows/deployment.yaml

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

.github/workflows/presubmit.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
4141
- name: Build debian package cuttlefish-cvdremote
4242
uses: ./.github/actions/build-cuttlefish-cvdremote-debian-package
43+
- name: Upload debian package
44+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
4345
with:
44-
arch: x86_64
46+
name: cuttlefish-cvdremote-x86_64
47+
path: cuttlefish-cvdremote_*.deb
4548

4649
build-cuttlefish-cvdremote-arm64-debian-package:
4750
runs-on: ubuntu-24.04-arm
@@ -52,8 +55,11 @@ jobs:
5255
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
5356
- name: Build debian package cuttlefish-cvdremote
5457
uses: ./.github/actions/build-cuttlefish-cvdremote-debian-package
58+
- name: Upload debian package
59+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
5560
with:
56-
arch: arm64
61+
name: cuttlefish-cvdremote-arm64
62+
path: cuttlefish-cvdremote_*.deb
5763

5864
build-cuttlefish-cloud-orchestrator-x86_64-docker-image:
5965
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)