Add build nonexample after stable build success
This commit is contained in:
parent
65e028fd24
commit
c2cf74db3f
48
.github/workflows/stable-build.yml
vendored
48
.github/workflows/stable-build.yml
vendored
|
@ -12,7 +12,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: "Release image: DocumentServer${{ matrix.edition }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: ${{ matrix.condition }}
|
continue-on-error: ${{ matrix.condition }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
@ -65,3 +65,47 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
build-nonExample:
|
||||||
|
name: "Release image: DocumentServer${{ matrix.edition }}-nonExample"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
|
continue-on-error: ${{ matrix.condition }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
images: ["documentserver-nonexample"]
|
||||||
|
edition: ["", "-ee", "-de"]
|
||||||
|
condition: [true]
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Get Tag Name
|
||||||
|
id: tag_name
|
||||||
|
run: |
|
||||||
|
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
||||||
|
|
||||||
|
- name: build image
|
||||||
|
run: |
|
||||||
|
TAG=$(echo ${{ steps.tag_name.outputs.SOURCE_TAG }} | sed 's/^.//; s/-stable//')
|
||||||
|
PRODUCT_EDITION=${{ matrix.edition }} \
|
||||||
|
PRODUCT_NAME=${{ env.PRODUCT_NAME }} \
|
||||||
|
COMPANY_NAME=${{ env.COMPANY_NAME }} \
|
||||||
|
PREFIX_NAME=-non.example \
|
||||||
|
TAG=$TAG \
|
||||||
|
docker buildx bake \
|
||||||
|
-f docker-bake.hcl ${{ matrix.images }} \
|
||||||
|
--push
|
||||||
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue