mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05:00
Test download
This commit is contained in:
parent
44edd6ed5f
commit
942b516ebf
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -196,6 +196,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
if: false
|
||||||
name: Build projects
|
name: Build projects
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# needs:
|
# needs:
|
||||||
@ -269,8 +270,8 @@ jobs:
|
|||||||
build-docker:
|
build-docker:
|
||||||
name: Build Docker images
|
name: Build Docker images
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
# needs:
|
||||||
- build
|
# - build
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -345,12 +346,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
- name: Retrieve github PAT secrets
|
- name: Retrieve Storage Account secret
|
||||||
id: retrieve-secret-pat
|
id: retrieve-secret
|
||||||
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
||||||
with:
|
with:
|
||||||
keyvault: "bitwarden-ci"
|
keyvault: "bitwarden-ci"
|
||||||
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
secrets: "storage-account-dockerimagetest-conn-string"
|
||||||
|
|
||||||
########## Generate image tag and build Docker image ##########
|
########## Generate image tag and build Docker image ##########
|
||||||
- name: Generate Docker image tag
|
- name: Generate Docker image tag
|
||||||
@ -377,19 +378,13 @@ jobs:
|
|||||||
PROJECT_NAME: ${{ steps.setup.outputs.project_name }}
|
PROJECT_NAME: ${{ steps.setup.outputs.project_name }}
|
||||||
run: echo "name=${_AZ_REGISTRY}/${PROJECT_NAME}:${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
run: echo "name=${_AZ_REGISTRY}/${PROJECT_NAME}:${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download build image artifact
|
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
|
||||||
with:
|
|
||||||
name: build
|
|
||||||
path: /tmp
|
|
||||||
|
|
||||||
- name: Download build image artifact
|
- name: Download build image artifact
|
||||||
run: |
|
run: |
|
||||||
az storage blob download \
|
az storage blob download \
|
||||||
--file /tmp/build.tar \
|
--file /tmp/build.tar \
|
||||||
--container-name builds \
|
--container-name builds \
|
||||||
--name build \
|
--name build \
|
||||||
--account-name dockerimagetest
|
--connection-string '${{ env.storage-account-dockerimagetest-conn-string }}'
|
||||||
ls -alh /tmp
|
ls -alh /tmp
|
||||||
|
|
||||||
- name: Load build image
|
- name: Load build image
|
||||||
@ -410,8 +405,6 @@ jobs:
|
|||||||
linux/arm64
|
linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.image-name.outputs.name }}
|
tags: ${{ steps.image-name.outputs.name }}
|
||||||
secrets: |
|
|
||||||
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
|
|
||||||
|
|
||||||
- name: Log out of Docker
|
- name: Log out of Docker
|
||||||
run: docker logout
|
run: docker logout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user