mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
CI: fix envoy versions in CI of release branch (#18538)
* CI: fix envoy versions in CI of release branch * - remove steps sds for 1.15 nightly run - checkout the release branch * add default name * fix * Update go-tests.yml * fix checkout code * add comments and revert schedule
This commit is contained in:
parent
53e28a4963
commit
c4b3234bbc
@ -47,6 +47,7 @@ jobs:
|
|||||||
runs-on: ${{ needs.setup.outputs.compute-large }}
|
runs-on: ${{ needs.setup.outputs.compute-large }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
uploaded-binary-name: 'consul-bin'
|
uploaded-binary-name: 'consul-bin'
|
||||||
|
branch-name: "release/1.15.x"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
|
|
||||||
@ -67,7 +68,7 @@ jobs:
|
|||||||
# this is further going to multiplied in envoy-integration tests by the
|
# this is further going to multiplied in envoy-integration tests by the
|
||||||
# other dimensions in the matrix. Currently TOTAL_RUNNERS would be
|
# other dimensions in the matrix. Currently TOTAL_RUNNERS would be
|
||||||
# multiplied by 8 based on these values:
|
# multiplied by 8 based on these values:
|
||||||
# envoy-version: ["1.24.10", "1.25.9", "1.26.4", "1.27.0"]
|
# envoy-version: ["1.22.11", "1.23.12", "1.24.10", "1.25.9"]
|
||||||
# xds-target: ["server", "client"]
|
# xds-target: ["server", "client"]
|
||||||
TOTAL_RUNNERS: 4
|
TOTAL_RUNNERS: 4
|
||||||
JQ_SLICER: '[ inputs ] | [_nwise(length / $runnercount | floor)]'
|
JQ_SLICER: '[ inputs ] | [_nwise(length / $runnercount | floor)]'
|
||||||
@ -101,7 +102,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
envoy-version: ["1.23.12", "1.24.10", "1.25.9", "1.26.4"]
|
envoy-version: ["1.22.11", "1.23.12", "1.24.10", "1.25.9"]
|
||||||
xds-target: ["server", "client"]
|
xds-target: ["server", "client"]
|
||||||
test-cases: ${{ fromJSON(needs.generate-envoy-job-matrices.outputs.envoy-matrix) }}
|
test-cases: ${{ fromJSON(needs.generate-envoy-job-matrices.outputs.envoy-matrix) }}
|
||||||
env:
|
env:
|
||||||
@ -124,13 +125,10 @@ jobs:
|
|||||||
path: ./bin
|
path: ./bin
|
||||||
- name: restore mode+x
|
- name: restore mode+x
|
||||||
run: chmod +x ./bin/consul
|
run: chmod +x ./bin/consul
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@2a1a44ac4aa01993040736bd95bb470da1a38365 # v2.9.0
|
uses: docker/setup-buildx-action@2a1a44ac4aa01993040736bd95bb470da1a38365 # v2.9.0
|
||||||
|
|
||||||
- name: Docker build
|
- name: Docker build
|
||||||
run: docker build -t consul:local -f ./build-support/docker/Consul-Dev.dockerfile ./bin
|
run: docker build -t consul:local -f ./build-support/docker/Consul-Dev.dockerfile ./bin
|
||||||
|
|
||||||
- name: Envoy Integration Tests
|
- name: Envoy Integration Tests
|
||||||
env:
|
env:
|
||||||
GOTESTSUM_JUNITFILE: ${{ env.TEST_RESULTS_DIR }}/results.xml
|
GOTESTSUM_JUNITFILE: ${{ env.TEST_RESULTS_DIR }}/results.xml
|
||||||
@ -195,7 +193,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
consul-version: ["1.14", "1.15", "1.16"]
|
consul-version: ["1.14", "1.15"]
|
||||||
env:
|
env:
|
||||||
CONSUL_LATEST_VERSION: ${{ matrix.consul-version }}
|
CONSUL_LATEST_VERSION: ${{ matrix.consul-version }}
|
||||||
ENVOY_VERSION: "1.24.6"
|
ENVOY_VERSION: "1.24.6"
|
||||||
@ -223,24 +221,6 @@ jobs:
|
|||||||
run: chmod +x consul
|
run: chmod +x consul
|
||||||
- name: Build consul:local image
|
- name: Build consul:local image
|
||||||
run: docker build -t ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local -f ./build-support/docker/Consul-Dev.dockerfile .
|
run: docker build -t ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local -f ./build-support/docker/Consul-Dev.dockerfile .
|
||||||
- name: Build consul-envoy:latest-version image
|
|
||||||
id: buildConsulEnvoyLatestImage
|
|
||||||
run: |
|
|
||||||
if ${{ endsWith(github.repository, '-enterprise') }} == 'true'
|
|
||||||
then
|
|
||||||
docker build -t consul-envoy:latest-version --build-arg CONSUL_IMAGE=docker.mirror.hashicorp.services/${{ env.CONSUL_LATEST_IMAGE_NAME }}:${{ env.CONSUL_LATEST_VERSION }}-ent --build-arg ENVOY_VERSION=${{ env.ENVOY_VERSION }} -f ./test/integration/consul-container/assets/Dockerfile-consul-envoy ./test/integration/consul-container/assets
|
|
||||||
else
|
|
||||||
docker build -t consul-envoy:latest-version --build-arg CONSUL_IMAGE=docker.mirror.hashicorp.services/${{ env.CONSUL_LATEST_IMAGE_NAME }}:${{ env.CONSUL_LATEST_VERSION }} --build-arg ENVOY_VERSION=${{ env.ENVOY_VERSION }} -f ./test/integration/consul-container/assets/Dockerfile-consul-envoy ./test/integration/consul-container/assets
|
|
||||||
fi
|
|
||||||
- name: Build consul-envoy:target-version image
|
|
||||||
id: buildConsulEnvoyTargetImage
|
|
||||||
continue-on-error: true
|
|
||||||
run: docker build -t consul-envoy:target-version --build-arg CONSUL_IMAGE=${{ env.CONSUL_LATEST_IMAGE_NAME }}:local --build-arg ENVOY_VERSION=${{ env.ENVOY_VERSION }} -f ./test/integration/consul-container/assets/Dockerfile-consul-envoy ./test/integration/consul-container/assets
|
|
||||||
- name: Retry Build consul-envoy:target-version image
|
|
||||||
if: steps.buildConsulEnvoyTargetImage.outcome == 'failure'
|
|
||||||
run: docker build -t consul-envoy:target-version --build-arg CONSUL_IMAGE=${{ env.CONSUL_LATEST_IMAGE_NAME }}:local --build-arg ENVOY_VERSION=${{ env.ENVOY_VERSION }} -f ./test/integration/consul-container/assets/Dockerfile-consul-envoy ./test/integration/consul-container/assets
|
|
||||||
- name: Build sds image
|
|
||||||
run: docker build -t consul-sds-server ./test/integration/connect/envoy/test-sds-server/
|
|
||||||
- name: Configure GH workaround for ipv6 loopback
|
- name: Configure GH workaround for ipv6 loopback
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
@ -310,7 +290,6 @@ jobs:
|
|||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" $TEST_RESULTS_DIR/results.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" $TEST_RESULTS_DIR/results.xml
|
||||||
|
|
||||||
|
|
||||||
test-integrations-success:
|
test-integrations-success:
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
|
@ -47,6 +47,7 @@ jobs:
|
|||||||
runs-on: ${{ needs.setup.outputs.compute-large }}
|
runs-on: ${{ needs.setup.outputs.compute-large }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
uploaded-binary-name: 'consul-bin'
|
uploaded-binary-name: 'consul-bin'
|
||||||
|
branch-name: "release/1.16.x"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
14
.github/workflows/reusable-dev-build.yml
vendored
14
.github/workflows/reusable-dev-build.yml
vendored
@ -14,6 +14,10 @@ on:
|
|||||||
repository-name:
|
repository-name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
branch-name:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
go-arch:
|
go-arch:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -25,7 +29,15 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ${{ fromJSON(inputs.runs-on) }}
|
runs-on: ${{ fromJSON(inputs.runs-on) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
# NOTE: This is used for nightly job of building release branch.
|
||||||
|
- name: Checkout branch ${{ inputs.branch-name }}
|
||||||
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.branch-name }}
|
||||||
|
if: inputs.branch-name != ''
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||||
|
if: inputs.branch-name == ''
|
||||||
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
||||||
- name: Setup Git
|
- name: Setup Git
|
||||||
if: ${{ endsWith(inputs.repository-name, '-enterprise') }}
|
if: ${{ endsWith(inputs.repository-name, '-enterprise') }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user