mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(ci): copy staging artifacts to azure (#10269)
To deploy the relays on Azure, we need to make sure the binaries are copied there, similar to GCP. This adds a job step to do just that, placing them into a storage account + container using new infra provisioned in Azure.
This commit is contained in:
18
.github/workflows/_build_artifacts.yml
vendored
18
.github/workflows/_build_artifacts.yml
vendored
@@ -323,7 +323,7 @@ jobs:
|
||||
service_account: "github-account@firezone-staging.iam.gserviceaccount.com"
|
||||
export_environment_variables: true
|
||||
create_credentials_file: true
|
||||
- name: Copy relay to Google Cloud Storage
|
||||
- name: Copy relay to Cloud Storage
|
||||
if: ${{ inputs.profile == 'release' && matrix.stage == 'release' && matrix.name.artifact == 'firezone-relay' }}
|
||||
run: |
|
||||
set -e
|
||||
@@ -334,6 +334,22 @@ jobs:
|
||||
gcloud storage cp \
|
||||
"${{ matrix.name.package }}".sha256sum.txt \
|
||||
gs://firezone-staging-artifacts/${{ matrix.name.image_name }}/${{ inputs.sha }}/${{ matrix.arch.shortname }}.sha256sum.txt
|
||||
|
||||
az storage blob upload \
|
||||
--container-name artifacts \
|
||||
--name "${{ matrix.name.image_name }}/${{ inputs.sha }}/${{ matrix.arch.shortname }}" \
|
||||
--file "${{ matrix.name.package }}" \
|
||||
--overwrite true \
|
||||
--no-progress \
|
||||
--connection-string "${{ secrets.AZURERM_ARTIFACTS_CONNECTION_STRING }}"
|
||||
|
||||
az storage blob upload \
|
||||
--container-name artifacts \
|
||||
--name "${{ matrix.name.image_name }}/${{ inputs.sha }}/${{ matrix.arch.shortname }}.sha256sum.txt" \
|
||||
--file "${{ matrix.name.package }}.sha256sum.txt" \
|
||||
--overwrite true \
|
||||
--no-progress \
|
||||
--connection-string "${{ secrets.AZURERM_ARTIFACTS_CONNECTION_STRING }}"
|
||||
- name: Upload Release Assets
|
||||
if: ${{ inputs.profile == 'release' && matrix.stage == 'release' && matrix.name.release_name }}
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user