mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 14:26:38 -05:00
Full test
This commit is contained in:
parent
cd8c16f4a2
commit
8da8388678
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -232,6 +232,15 @@ jobs:
|
||||
keyvault: "bitwarden-ci"
|
||||
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
||||
|
||||
- name: Generate image full name
|
||||
id: image-name
|
||||
run: |
|
||||
IMAGE_TAG=$(echo "${GITHUB_REF:11}" | sed "s#/#-#g") # slash safe branch name
|
||||
if [[ "$IMAGE_TAG" == "master" ]]; then
|
||||
IMAGE_TAG=dev
|
||||
fi
|
||||
echo "name=${_AZ_REGISTRY}/build:${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
||||
with:
|
||||
@ -242,7 +251,7 @@ jobs:
|
||||
linux/arm/v7,
|
||||
linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env._AZ_REGISTRY }}/build:latest
|
||||
tags: ${{ steps.image-name.outputs.name }}
|
||||
secrets: |
|
||||
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
|
||||
|
||||
@ -333,12 +342,6 @@ jobs:
|
||||
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
||||
|
||||
########## Generate image tag and build Docker image ##########
|
||||
- name: Docker Test Step
|
||||
run: |
|
||||
docker image pull $_AZ_REGISTRY/build:latest
|
||||
docker image ls
|
||||
exit 1
|
||||
|
||||
- name: Generate Docker image tag
|
||||
id: tag
|
||||
run: |
|
||||
@ -366,6 +369,8 @@ jobs:
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
||||
with:
|
||||
build-args: |
|
||||
BUILD_TAG=${{ steps.tag.outputs.image_tag }}
|
||||
context: .
|
||||
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
|
||||
platforms: |
|
||||
|
@ -1,7 +1,8 @@
|
||||
###############################################
|
||||
# Build stage #
|
||||
###############################################
|
||||
FROM --platform=$BUILDPLATFORM bitwarden-build:latest AS bitwarden-build
|
||||
ARG BUILD_TAG=latest
|
||||
FROM --platform=$BUILDPLATFORM bitwarden-build:${BUILD_TAG} AS bitwarden-build
|
||||
|
||||
###############################################
|
||||
# App stage #
|
||||
|
Loading…
x
Reference in New Issue
Block a user