Skip to content

- remove macos-13 as it's not an arm architecture #975

- remove macos-13 as it's not an arm architecture

- remove macos-13 as it's not an arm architecture #975

name: Build, test, and publish CE
on: [pull_request, push, workflow_dispatch]
jobs:
build-and-test:
runs-on: ${{ matrix.PLATFORM }}
strategy:
fail-fast: false
matrix:
DISTRO: [tomcat, wildfly, run]
PLATFORM: [ubuntu-22.04] # TODO: add arm runner to build & test arm images
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: ./pipeline.sh
env:
DISTRO: ${{ matrix.DISTRO }}
EE: false
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
- name: Test
run: ./test.sh
working-directory: test
env:
DISTRO: ${{ matrix.DISTRO }}
EE: false
publish:
runs-on: ubuntu-22.04 # TODO: use arm runner to build & push multi platform images
needs: build-and-test
if: ${{ github.ref == 'refs/heads/next' || startsWith(github.ref, 'refs/heads/7.') }}
strategy:
matrix:
DISTRO: [tomcat, wildfly, run]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish multi-platform images
run: ./release.sh
env:
DISTRO: ${{ matrix.DISTRO }}
EE: false
PLATFORMS: linux/arm64,linux/amd64
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}