DocSpace-client/.github/workflows/4testing-multi-build.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

name: 4testing multiarch-build
on:
push:
branches:
2023-07-11 14:00:51 +00:00
- 'hotfix/v**'
2023-07-12 09:05:21 +00:00
- 'release/v**'
env:
DOCKER_PATH: "/build/install/docker"
REPO: "onlyoffice"
DOCKER_IMAGE_PREFIX: "4testing-docspace"
DOCKERFILE: "Dockerfile.app"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64]
steps:
2023-02-08 17:04:39 +00:00
- name: Checkout
uses: actions/checkout@v3
2023-02-08 17:04:39 +00:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
2023-02-08 17:04:39 +00:00
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
2023-02-08 17:04:39 +00:00
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-02-08 17:04:39 +00:00
- name: Build 4testing
run: |
cd .${DOCKER_PATH}
2023-07-11 14:00:51 +00:00
TAG=${{github.run_number}}
2023-08-03 07:51:28 +00:00
export DOCKER_TAG=$(echo "${GITHUB_REF_NAME}" | sed '/^release\b\|^hotfix\b/s/release.*\/v\|hotfix.*\/v//').$TAG
2023-07-12 09:05:21 +00:00
docker buildx bake -f build.yml \
--set *.args.GIT_BRANCH=$GITHUB_REF_NAME \
--set *.platform=linux/amd64 \
2023-07-13 15:26:26 +00:00
--push
shell: bash