mirror of https://github.com/portainer/portainer
parent
488393007f
commit
e412958dcc
|
@ -13,6 +13,11 @@ on:
|
||||||
- 'feat/*'
|
- 'feat/*'
|
||||||
- 'fix/*'
|
- 'fix/*'
|
||||||
- 'refactor/*'
|
- 'refactor/*'
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_HUB_REPO: portainerci/portainer
|
DOCKER_HUB_REPO: portainerci/portainer
|
||||||
|
@ -30,6 +35,7 @@ jobs:
|
||||||
- { platform: windows, arch: amd64, version: 1809 }
|
- { platform: windows, arch: amd64, version: 1809 }
|
||||||
- { platform: windows, arch: amd64, version: ltsc2022 }
|
- { platform: windows, arch: amd64, version: ltsc2022 }
|
||||||
runs-on: arc-runner-set
|
runs-on: arc-runner-set
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
steps:
|
steps:
|
||||||
- name: '[preparation] checkout the current branch'
|
- name: '[preparation] checkout the current branch'
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
|
@ -120,6 +126,7 @@ jobs:
|
||||||
CONTAINER_IMAGE_TAG: ${{ env.CONTAINER_IMAGE_TAG }}
|
CONTAINER_IMAGE_TAG: ${{ env.CONTAINER_IMAGE_TAG }}
|
||||||
build_manifests:
|
build_manifests:
|
||||||
runs-on: arc-runner-set
|
runs-on: arc-runner-set
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
needs: [build_images]
|
needs: [build_images]
|
||||||
steps:
|
steps:
|
||||||
- name: '[preparation] docker login'
|
- name: '[preparation] docker login'
|
||||||
|
|
|
@ -11,6 +11,11 @@ on:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
- release/*
|
- release/*
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.21.5
|
GO_VERSION: 1.21.5
|
||||||
|
@ -20,6 +25,7 @@ jobs:
|
||||||
run-linters:
|
run-linters:
|
||||||
name: Run linters
|
name: Run linters
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -23,7 +23,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
if: >-
|
||||||
github.event.pull_request &&
|
github.event.pull_request &&
|
||||||
github.event.review.body == '/scan'
|
github.event.review.body == '/scan' &&
|
||||||
|
github.event.pull_request.draft == false
|
||||||
outputs:
|
outputs:
|
||||||
jsdiff: ${{ steps.set-diff-matrix.outputs.js_diff_result }}
|
jsdiff: ${{ steps.set-diff-matrix.outputs.js_diff_result }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -77,7 +78,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
if: >-
|
||||||
github.event.pull_request &&
|
github.event.pull_request &&
|
||||||
github.event.review.body == '/scan'
|
github.event.review.body == '/scan' &&
|
||||||
|
github.event.pull_request.draft == false
|
||||||
outputs:
|
outputs:
|
||||||
godiff: ${{ steps.set-diff-matrix.outputs.go_diff_result }}
|
godiff: ${{ steps.set-diff-matrix.outputs.go_diff_result }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -139,7 +141,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
if: >-
|
||||||
github.event.pull_request &&
|
github.event.pull_request &&
|
||||||
github.event.review.body == '/scan'
|
github.event.review.body == '/scan' &&
|
||||||
|
github.event.pull_request.draft == false
|
||||||
outputs:
|
outputs:
|
||||||
imagediff-trivy: ${{ steps.set-diff-trivy-matrix.outputs.image_diff_trivy_result }}
|
imagediff-trivy: ${{ steps.set-diff-trivy-matrix.outputs.image_diff_trivy_result }}
|
||||||
imagediff-docker-scout: ${{ steps.set-diff-docker-scout-matrix.outputs.image_diff_docker_scout_result }}
|
imagediff-docker-scout: ${{ steps.set-diff-docker-scout-matrix.outputs.image_diff_docker_scout_result }}
|
||||||
|
@ -268,7 +271,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
if: >-
|
||||||
github.event.pull_request &&
|
github.event.pull_request &&
|
||||||
github.event.review.body == '/scan'
|
github.event.review.body == '/scan' &&
|
||||||
|
github.event.pull_request.draft == false
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
jsdiff: ${{fromJson(needs.client-dependencies.outputs.jsdiff)}}
|
jsdiff: ${{fromJson(needs.client-dependencies.outputs.jsdiff)}}
|
||||||
|
|
|
@ -1,14 +1,22 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: push
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.21.5
|
GO_VERSION: 1.21.5
|
||||||
NODE_VERSION: 18.x
|
NODE_VERSION: 18.x
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- ready_for_review
|
||||||
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-client:
|
test-client:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -29,6 +37,8 @@ jobs:
|
||||||
- { platform: windows, arch: amd64, version: 1809 }
|
- { platform: windows, arch: amd64, version: 1809 }
|
||||||
- { platform: windows, arch: amd64, version: ltsc2022 }
|
- { platform: windows, arch: amd64, version: ltsc2022 }
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
|
|
|
@ -6,6 +6,11 @@ on:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
- 'release/*'
|
- 'release/*'
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.21.5
|
GO_VERSION: 1.21.5
|
||||||
|
@ -14,6 +19,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
openapi-spec:
|
openapi-spec:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue