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"
|
keyvault: "bitwarden-ci"
|
||||||
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
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
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
|
||||||
with:
|
with:
|
||||||
@ -242,7 +251,7 @@ jobs:
|
|||||||
linux/arm/v7,
|
linux/arm/v7,
|
||||||
linux/arm64/v8
|
linux/arm64/v8
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env._AZ_REGISTRY }}/build:latest
|
tags: ${{ steps.image-name.outputs.name }}
|
||||||
secrets: |
|
secrets: |
|
||||||
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
|
"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"
|
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
||||||
|
|
||||||
########## Generate image tag and build Docker image ##########
|
########## 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
|
- name: Generate Docker image tag
|
||||||
id: tag
|
id: tag
|
||||||
run: |
|
run: |
|
||||||
@ -366,6 +369,8 @@ jobs:
|
|||||||
- 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:
|
||||||
|
build-args: |
|
||||||
|
BUILD_TAG=${{ steps.tag.outputs.image_tag }}
|
||||||
context: .
|
context: .
|
||||||
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
|
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
|
||||||
platforms: |
|
platforms: |
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
###############################################
|
###############################################
|
||||||
# Build stage #
|
# 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 #
|
# App stage #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user