mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2025-08-07 12:26:57 +02:00
fix(infra): configure gcp utils before upload (#1698)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
- Move authentication setup for GCP into upload command - Update name to be more descriptive for gcs upload - Update references to use new name and remove redundant GCP authentication setup Closes STOR-255
This commit is contained in:
parent
6f15ad546d
commit
5dcfefe2b6
@ -158,7 +158,7 @@ commands:
|
|||||||
environment:
|
environment:
|
||||||
SYNCSTORAGE_RS_IMAGE: app:build
|
SYNCSTORAGE_RS_IMAGE: app:build
|
||||||
|
|
||||||
upload-to-gcs:
|
gcs-configure-and-upload:
|
||||||
parameters:
|
parameters:
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
@ -168,6 +168,10 @@ commands:
|
|||||||
type: enum
|
type: enum
|
||||||
enum: ["xml", "json"]
|
enum: ["xml", "json"]
|
||||||
steps:
|
steps:
|
||||||
|
- gcp-cli/setup:
|
||||||
|
google_project_id: ETE_GOOGLE_PROJECT_ID
|
||||||
|
gcloud_service_key: ETE_GCLOUD_SERVICE_KEY
|
||||||
|
google_project_number: ETE_GOOGLE_PROJECT_NUMBER
|
||||||
- run:
|
- run:
|
||||||
name: Upload << parameters.source >> << parameters.extension >> Files to GCS
|
name: Upload << parameters.source >> << parameters.extension >> Files to GCS
|
||||||
when: always # Ensure the step runs even if previous steps, like test runs, fail
|
when: always # Ensure the step runs even if previous steps, like test runs, fail
|
||||||
@ -247,10 +251,6 @@ jobs:
|
|||||||
MYSQL_DATABASE: syncstorage
|
MYSQL_DATABASE: syncstorage
|
||||||
resource_class: large
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- gcp-cli/setup:
|
|
||||||
google_project_id: ETE_GOOGLE_PROJECT_ID
|
|
||||||
gcloud_service_key: ETE_GCLOUD_SERVICE_KEY
|
|
||||||
google_project_number: ETE_GOOGLE_PROJECT_NUMBER
|
|
||||||
- checkout
|
- checkout
|
||||||
- display-versions
|
- display-versions
|
||||||
- setup-python
|
- setup-python
|
||||||
@ -268,11 +268,11 @@ jobs:
|
|||||||
# then run-tokenserver-scripts-tests will fail. These tests expect the db to be
|
# then run-tokenserver-scripts-tests will fail. These tests expect the db to be
|
||||||
# configured already, and it appears unit-tests modify the db to the expected state
|
# configured already, and it appears unit-tests modify the db to the expected state
|
||||||
- store-test-results
|
- store-test-results
|
||||||
- upload-to-gcs:
|
- gcs-configure-and-upload:
|
||||||
source: workflow/test-results
|
source: workflow/test-results
|
||||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||||
extension: xml
|
extension: xml
|
||||||
- upload-to-gcs:
|
- gcs-configure-and-upload:
|
||||||
source: workflow/test-results
|
source: workflow/test-results
|
||||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/coverage
|
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/coverage
|
||||||
extension: json
|
extension: json
|
||||||
@ -432,7 +432,7 @@ jobs:
|
|||||||
- run-e2e-tests:
|
- run-e2e-tests:
|
||||||
db: mysql
|
db: mysql
|
||||||
- store-test-results
|
- store-test-results
|
||||||
- upload-to-gcs:
|
- gcs-configure-and-upload:
|
||||||
source: workflow/test-results
|
source: workflow/test-results
|
||||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||||
extension: xml
|
extension: xml
|
||||||
@ -461,7 +461,7 @@ jobs:
|
|||||||
- run-e2e-tests:
|
- run-e2e-tests:
|
||||||
db: spanner
|
db: spanner
|
||||||
- store-test-results
|
- store-test-results
|
||||||
- upload-to-gcs:
|
- gcs-configure-and-upload:
|
||||||
source: workflow/test-results
|
source: workflow/test-results
|
||||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||||
extension: xml
|
extension: xml
|
||||||
|
Loading…
Reference in New Issue
Block a user