mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05:00
Test other method
This commit is contained in:
parent
942b516ebf
commit
5143e411b5
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@ -272,6 +272,11 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# needs:
|
# needs:
|
||||||
# - build
|
# - build
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -346,14 +351,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
- name: Retrieve Storage Account secret
|
|
||||||
id: retrieve-secret
|
|
||||||
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
|
||||||
with:
|
|
||||||
keyvault: "bitwarden-ci"
|
|
||||||
secrets: "storage-account-dockerimagetest-conn-string"
|
|
||||||
|
|
||||||
########## Generate image tag and build Docker image ##########
|
########## Generate image tag and build Docker image ##########
|
||||||
|
- name: Build Docker image
|
||||||
|
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: build.Dockerfile
|
||||||
|
platforms: |
|
||||||
|
linux/amd64,
|
||||||
|
linux/arm/v7,
|
||||||
|
linux/arm64
|
||||||
|
push: true
|
||||||
|
outputs: type=oci,dest=/tmp/build.tar
|
||||||
|
tags: localhost:5000/build:latest
|
||||||
|
|
||||||
- name: Generate Docker image tag
|
- name: Generate Docker image tag
|
||||||
id: tag
|
id: tag
|
||||||
run: |
|
run: |
|
||||||
@ -378,20 +389,6 @@ 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
|
|
||||||
run: |
|
|
||||||
az storage blob download \
|
|
||||||
--file /tmp/build.tar \
|
|
||||||
--container-name builds \
|
|
||||||
--name build \
|
|
||||||
--connection-string '${{ env.storage-account-dockerimagetest-conn-string }}'
|
|
||||||
ls -alh /tmp
|
|
||||||
|
|
||||||
- name: Load build image
|
|
||||||
run: |
|
|
||||||
docker load --input /tmp/build.tar
|
|
||||||
docker image ls -a
|
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
||||||
with:
|
with:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Build stage #
|
# Build stage #
|
||||||
###############################################
|
###############################################
|
||||||
ARG BUILD_TAG=latest
|
ARG BUILD_TAG=latest
|
||||||
FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build
|
FROM --platform=$BUILDPLATFORM localhost:5000/build:${BUILD_TAG} AS bitwarden-build
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# App stage #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user