mirror of https://github.com/apache/superset.git
fix: docker CI job doesn't trigger on master (#27261)
This commit is contained in:
parent
ce9e4b4b77
commit
53e1aeccbe
|
@ -13,13 +13,24 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
setup_matrix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
matrix_config: ${{ steps.set_matrix.outputs.matrix_config }}
|
||||||
|
steps:
|
||||||
|
- id: set_matrix
|
||||||
|
run: |
|
||||||
|
MATRIX_CONFIG=$(if [ "${{ github.event_name }}" == "pull_request" ]; then echo '["ci"]'; else echo '["dev", "lean", "py310", "websocket", "dockerize"]'; fi)
|
||||||
|
echo "matrix_config=${MATRIX_CONFIG}" >> $GITHUB_OUTPUT
|
||||||
|
echo $GITHUB_OUTPUT
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
name: docker-build
|
name: docker-build
|
||||||
|
needs: setup_matrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
build_preset: |
|
build_preset: ${{fromJson(needs.setup_matrix.outputs.matrix_config)}}
|
||||||
${{ fromJson(github.event_name == 'pull_request' ? '["ci"]' : '["dev", "lean", "py310", "websocket", "dockerize"]') }}
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
||||||
|
|
|
@ -52,20 +52,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "This is a no-op step for python-lint to ensure a successful status."
|
echo "This is a no-op step for python-lint to ensure a successful status."
|
||||||
exit 0
|
exit 0
|
||||||
# section to be deleted after master merge
|
|
||||||
docker-build:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
build_preset: ["dev", "lean", "py310", "websocket", "dockerize"]
|
|
||||||
platform: ["linux/amd64", "linux/arm64"]
|
|
||||||
exclude:
|
|
||||||
- build_preset: "dev"
|
|
||||||
platform: "linux/arm64"
|
|
||||||
- build_preset: "lean"
|
|
||||||
platform: "linux/arm64"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: No-op for docker
|
|
||||||
run: |
|
|
||||||
echo "No-op to get rid of the docker-build checks reqs in .asf.yml"
|
|
||||||
exit 0
|
|
||||||
|
|
Loading…
Reference in New Issue