2022-09-13 07:54:45 +00:00
|
|
|
name: 4testing multiarch-build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-04-25 12:23:20 +00:00
|
|
|
branches:
|
|
|
|
- 'hotfix/v**'
|
|
|
|
- 'release/v**'
|
|
|
|
env:
|
|
|
|
DOCKER_PATH: "/build/install/docker"
|
|
|
|
REPO: "onlyoffice"
|
|
|
|
DOCKER_IMAGE_PREFIX: "4testing-docspace"
|
|
|
|
DOCKERFILE: "Dockerfile.app"
|
2022-09-13 07:54:45 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [linux/amd64]
|
|
|
|
steps:
|
2023-02-08 17:04:39 +00:00
|
|
|
- name: Checkout
|
2023-02-09 12:12:04 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-02-08 17:04:39 +00:00
|
|
|
- name: Set up QEMU
|
2022-09-13 07:54:45 +00:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2023-02-08 17:04:39 +00:00
|
|
|
- name: Set up Docker Buildx
|
2022-09-13 07:54:45 +00:00
|
|
|
id: buildx
|
2023-02-09 12:12:04 +00:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2023-02-08 17:04:39 +00:00
|
|
|
- name: Login to DockerHub
|
2022-09-13 07:54:45 +00:00
|
|
|
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
|
2022-09-13 07:54:45 +00:00
|
|
|
run: |
|
2023-04-25 12:23:20 +00:00
|
|
|
cd .${DOCKER_PATH}
|
|
|
|
export DOCKER_TAG=$(echo "${GITHUB_REF_NAME}" | sed '/^release\b\|^hotfix\b/s/release.*\/\|hotfix.*\///')
|
|
|
|
|
2022-09-13 07:54:45 +00:00
|
|
|
docker buildx bake -f build.yml \
|
2023-02-21 11:26:59 +00:00
|
|
|
--set *.args.GIT_BRANCH=$GITHUB_REF_NAME \
|
2022-09-13 07:54:45 +00:00
|
|
|
--set *.platform=linux/amd64 \
|
|
|
|
--push
|
|
|
|
shell: bash
|