chore(actions): v4.4 update git actions versions
This commit is contained in:
parent
6cb23c7cbc
commit
2d4ef5bfa3
|
@ -16,7 +16,7 @@ jobs:
|
||||||
container: ghcr.io/emqx/emqx-builder/4.4-20:${{ matrix.erl_otp }}-${{ matrix.os }}
|
container: ghcr.io/emqx/emqx-builder/4.4-20:${{ matrix.erl_otp }}-${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # need full history
|
fetch-depth: 0 # need full history
|
||||||
- name: fix-git-unsafe-repository
|
- name: fix-git-unsafe-repository
|
||||||
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run: ./scripts/check-apps-vsn.sh
|
run: ./scripts/check-apps-vsn.sh
|
||||||
- name: Check chart versions
|
- name: Check chart versions
|
||||||
run: ./scripts/check-chart-vsn.sh
|
run: ./scripts/check-chart-vsn.sh
|
||||||
- uses: actions/upload-artifact@v3.1.0
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: expected_appup_files
|
name: expected_appup_files
|
||||||
|
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
make -C source deps-all
|
make -C source deps-all
|
||||||
zip -ryq source.zip source/* source/.[^.]*
|
zip -ryq source.zip source/* source/.[^.]*
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source
|
name: source
|
||||||
path: source.zip
|
path: source.zip
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
||||||
exclude:
|
exclude:
|
||||||
- profile: emqx-edge
|
- profile: emqx-edge
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source
|
name: source
|
||||||
path: .
|
path: .
|
||||||
|
@ -182,12 +182,12 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v2
|
||||||
- uses: docker/setup-qemu-action@v1
|
- uses: docker/setup-qemu-action@v2
|
||||||
with:
|
with:
|
||||||
image: tonistiigi/binfmt:latest
|
image: tonistiigi/binfmt:latest
|
||||||
platforms: all
|
platforms: all
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source
|
name: source
|
||||||
path: .
|
path: .
|
||||||
|
@ -207,7 +207,7 @@ jobs:
|
||||||
--pkgtype "${PACKAGE}" \
|
--pkgtype "${PACKAGE}" \
|
||||||
--arch "${ARCH}" \
|
--arch "${ARCH}" \
|
||||||
--builder "ghcr.io/emqx/emqx-builder/4.4-20:${OTP}-${SYSTEM}"
|
--builder "ghcr.io/emqx/emqx-builder/4.4-20:${OTP}-${SYSTEM}"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.profile }}
|
name: ${{ matrix.profile }}
|
||||||
path: source/_packages/${{ matrix.profile }}/
|
path: source/_packages/${{ matrix.profile }}/
|
||||||
|
@ -233,18 +233,18 @@ jobs:
|
||||||
registry: 'public.ecr.aws'
|
registry: 'public.ecr.aws'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source
|
name: source
|
||||||
path: .
|
path: .
|
||||||
- name: unzip source code
|
- name: unzip source code
|
||||||
run: unzip -q source.zip
|
run: unzip -q source.zip
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v2
|
||||||
- uses: docker/setup-qemu-action@v1
|
- uses: docker/setup-qemu-action@v2
|
||||||
with:
|
with:
|
||||||
image: tonistiigi/binfmt:latest
|
image: tonistiigi/binfmt:latest
|
||||||
platforms: all
|
platforms: all
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- uses: aws-actions/configure-aws-credentials@v1-node16
|
||||||
if: matrix.registry == 'public.ecr.aws'
|
if: matrix.registry == 'public.ecr.aws'
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
@ -253,12 +253,12 @@ jobs:
|
||||||
- name: Docker login to aws ecr
|
- name: Docker login to aws ecr
|
||||||
if: matrix.registry == 'public.ecr.aws'
|
if: matrix.registry == 'public.ecr.aws'
|
||||||
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
|
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
|
||||||
- uses: docker/login-action@v1
|
- uses: docker/login-action@v2
|
||||||
if: matrix.registry == 'docker.io'
|
if: matrix.registry == 'docker.io'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
username: ${{ secrets.DOCKER_HUB_USER }}
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
- uses: docker/metadata-action@v3
|
- uses: docker/metadata-action@v4
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}
|
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}
|
||||||
|
@ -287,7 +287,7 @@ jobs:
|
||||||
EMQX_NAME=${{ matrix.profile }}
|
EMQX_NAME=${{ matrix.profile }}
|
||||||
file: source/deploy/docker/Dockerfile
|
file: source/deploy/docker/Dockerfile
|
||||||
context: source
|
context: source
|
||||||
- uses: docker/build-push-action@v2
|
- uses: docker/build-push-action@v3
|
||||||
if: matrix.profile == 'emqx-ee'
|
if: matrix.profile == 'emqx-ee'
|
||||||
with:
|
with:
|
||||||
## only push when stable tag and rc tag
|
## only push when stable tag and rc tag
|
||||||
|
@ -317,7 +317,7 @@ jobs:
|
||||||
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.profile }}
|
name: ${{ matrix.profile }}
|
||||||
path: packages/${{ matrix.profile }}
|
path: packages/${{ matrix.profile }}
|
||||||
|
@ -332,7 +332,7 @@ jobs:
|
||||||
echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
|
echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
|
||||||
done
|
done
|
||||||
cd -
|
cd -
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- uses: aws-actions/configure-aws-credentials@v1-node16
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
otp:
|
otp:
|
||||||
- 24.3.4.2
|
- 24.3.4.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -8,6 +8,6 @@ jobs:
|
||||||
container: ghcr.io/emqx/emqx-builder/4.4-20:24.3.4.2-1-ubuntu20.04
|
container: ghcr.io/emqx/emqx-builder/4.4-20:24.3.4.2-1-ubuntu20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Run check-deps-integrity.escript
|
- name: Run check-deps-integrity.escript
|
||||||
run: ./scripts/check-deps-integrity.escript
|
run: ./scripts/check-deps-integrity.escript
|
||||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- uses: aws-actions/configure-aws-credentials@v1-node16
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
@ -41,7 +41,7 @@ jobs:
|
||||||
s3dir=${{ matrix.profile }}
|
s3dir=${{ matrix.profile }}
|
||||||
fi
|
fi
|
||||||
aws s3 cp --recursive s3://${{ secrets.AWS_S3_BUCKET }}/$s3dir/${{ github.ref_name }} packages
|
aws s3 cp --recursive s3://${{ secrets.AWS_S3_BUCKET }}/$s3dir/${{ github.ref_name }} packages
|
||||||
- uses: alexellis/upload-assets@0.2.2
|
- uses: alexellis/upload-assets@0.4.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
BASE_VERSION: "4.3.0"
|
BASE_VERSION: "4.3.0"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: emqx
|
path: emqx
|
||||||
- name: Prepare scripts
|
- name: Prepare scripts
|
||||||
|
|
|
@ -22,11 +22,11 @@ jobs:
|
||||||
JMETER_VERSION: 5.4.3
|
JMETER_VERSION: 5.4.3
|
||||||
run: |
|
run: |
|
||||||
wget --no-verbose --no-check-certificate -O /tmp/apache-jmeter.tgz https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz
|
wget --no-verbose --no-check-certificate -O /tmp/apache-jmeter.tgz https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: apache-jmeter.tgz
|
name: apache-jmeter.tgz
|
||||||
path: /tmp/apache-jmeter.tgz
|
path: /tmp/apache-jmeter.tgz
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: "24.3.4.2"
|
otp-version: "24.3.4.2"
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make ${{ steps.prepare.outputs.imgname }}-docker
|
make ${{ steps.prepare.outputs.imgname }}-docker
|
||||||
docker save emqx/${{ steps.prepare.outputs.imgname }}:${{ steps.prepare.outputs.version }} -o image.tar.gz
|
docker save emqx/${{ steps.prepare.outputs.imgname }}:${{ steps.prepare.outputs.version }} -o image.tar.gz
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: image.tar.gz
|
path: image.tar.gz
|
||||||
|
@ -65,8 +65,8 @@ jobs:
|
||||||
|
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -82,12 +82,12 @@ jobs:
|
||||||
docker-compose \
|
docker-compose \
|
||||||
-f .ci/docker-compose-file/docker-compose-emqx-cluster.yaml \
|
-f .ci/docker-compose-file/docker-compose-emqx-cluster.yaml \
|
||||||
up -d --build
|
up -d --build
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/emqx-svt-web-server
|
repository: emqx/emqx-svt-web-server
|
||||||
ref: web-server-1.0
|
ref: web-server-1.0
|
||||||
path: emqx-svt-web-server
|
path: emqx-svt-web-server
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
- name: run webserver in docker
|
- name: run webserver in docker
|
||||||
run: |
|
run: |
|
||||||
cd ./emqx-svt-web-server/svtserver
|
cd ./emqx-svt-web-server/svtserver
|
||||||
|
@ -105,17 +105,18 @@ jobs:
|
||||||
docker ps -a
|
docker ps -a
|
||||||
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
||||||
echo WEB_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' webserver) >> $GITHUB_ENV
|
echo WEB_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' webserver) >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/emqx-fvt
|
repository: emqx/emqx-fvt
|
||||||
ref: v1.6.0
|
ref: v1.6.0
|
||||||
path: scripts
|
path: scripts
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8.0.282' # The JDK version to make available on the path.
|
java-version: '8.0.282' # The JDK version to make available on the path.
|
||||||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
||||||
architecture: x64 # (x64 or x86) - defaults to x64
|
architecture: x64 # (x64 or x86) - defaults to x64
|
||||||
- uses: actions/download-artifact@v2
|
distribution: 'zulu'
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: apache-jmeter.tgz
|
name: apache-jmeter.tgz
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -144,7 +145,7 @@ jobs:
|
||||||
echo "check logs filed"
|
echo "check logs filed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: jmeter_logs
|
name: jmeter_logs
|
||||||
|
@ -164,8 +165,8 @@ jobs:
|
||||||
|
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -197,17 +198,18 @@ jobs:
|
||||||
docker ps -a
|
docker ps -a
|
||||||
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
||||||
echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql) >> $GITHUB_ENV
|
echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql) >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/emqx-fvt
|
repository: emqx/emqx-fvt
|
||||||
ref: v1.6.0
|
ref: v1.6.0
|
||||||
path: scripts
|
path: scripts
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8.0.282' # The JDK version to make available on the path.
|
java-version: '8.0.282' # The JDK version to make available on the path.
|
||||||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
||||||
architecture: x64 # (x64 or x86) - defaults to x64
|
architecture: x64 # (x64 or x86) - defaults to x64
|
||||||
- uses: actions/download-artifact@v2
|
distribution: 'zulu'
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: apache-jmeter.tgz
|
name: apache-jmeter.tgz
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -246,7 +248,7 @@ jobs:
|
||||||
echo "check logs filed"
|
echo "check logs filed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: jmeter_logs
|
name: jmeter_logs
|
||||||
|
@ -270,8 +272,8 @@ jobs:
|
||||||
|
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -300,17 +302,18 @@ jobs:
|
||||||
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
|
||||||
echo PGSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pgsql) >> $GITHUB_ENV
|
echo PGSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pgsql) >> $GITHUB_ENV
|
||||||
echo CONFIG_PATH=$(docker inspect -f '{{ range .Mounts }}{{ if eq .Name "docker-compose-file_etc" }}{{ .Source }}{{ end }}{{ end }}' node1.emqx.io) >> $GITHUB_ENV
|
echo CONFIG_PATH=$(docker inspect -f '{{ range .Mounts }}{{ if eq .Name "docker-compose-file_etc" }}{{ .Source }}{{ end }}{{ end }}' node1.emqx.io) >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/emqx-fvt
|
repository: emqx/emqx-fvt
|
||||||
ref: v1.6.0
|
ref: v1.6.0
|
||||||
path: scripts
|
path: scripts
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8.0.282' # The JDK version to make available on the path.
|
java-version: '8.0.282' # The JDK version to make available on the path.
|
||||||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
||||||
architecture: x64 # (x64 or x86) - defaults to x64
|
architecture: x64 # (x64 or x86) - defaults to x64
|
||||||
- uses: actions/download-artifact@v2
|
distribution: 'zulu'
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: apache-jmeter.tgz
|
name: apache-jmeter.tgz
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -354,7 +357,7 @@ jobs:
|
||||||
echo "check logs filed"
|
echo "check logs filed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: jmeter_logs
|
name: jmeter_logs
|
||||||
|
@ -365,8 +368,8 @@ jobs:
|
||||||
|
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: image
|
name: image
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -397,17 +400,18 @@ jobs:
|
||||||
echo HTTP_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' Tomcat) >> $GITHUB_ENV
|
echo HTTP_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' Tomcat) >> $GITHUB_ENV
|
||||||
echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql) >> $GITHUB_ENV
|
echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql) >> $GITHUB_ENV
|
||||||
echo CONFIG_PATH=$(docker inspect -f '{{ range .Mounts }}{{ if eq .Name "docker-compose-file_etc" }}{{ .Source }}{{ end }}{{ end }}' node1.emqx.io) >> $GITHUB_ENV
|
echo CONFIG_PATH=$(docker inspect -f '{{ range .Mounts }}{{ if eq .Name "docker-compose-file_etc" }}{{ .Source }}{{ end }}{{ end }}' node1.emqx.io) >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/emqx-fvt
|
repository: emqx/emqx-fvt
|
||||||
ref: v1.6.0
|
ref: v1.6.0
|
||||||
path: scripts
|
path: scripts
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8.0.282' # The JDK version to make available on the path.
|
java-version: '8.0.282' # The JDK version to make available on the path.
|
||||||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
||||||
architecture: x64 # (x64 or x86) - defaults to x64
|
architecture: x64 # (x64 or x86) - defaults to x64
|
||||||
- uses: actions/download-artifact@v2
|
distribution: 'zulu'
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: apache-jmeter.tgz
|
name: apache-jmeter.tgz
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -443,7 +447,7 @@ jobs:
|
||||||
sudo cat /var/lib/docker/volumes/docker-compose-file_etc/_data/emqx.conf
|
sudo cat /var/lib/docker/volumes/docker-compose-file_etc/_data/emqx.conf
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: jmeter_logs
|
name: jmeter_logs
|
||||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- ipv6
|
- ipv6
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
# to avoid dirty self-hosted runners
|
# to avoid dirty self-hosted runners
|
||||||
- name: stop containers
|
- name: stop containers
|
||||||
run: |
|
run: |
|
||||||
|
@ -60,7 +60,7 @@ jobs:
|
||||||
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
erlang sh -c "make apps/emqx_auth_ldap-ct"
|
erlang sh -c "make apps/emqx_auth_ldap-ct"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: logs_ldap${{ matrix.ldap_tag }}_${{ matrix.network_type }}
|
name: logs_ldap${{ matrix.ldap_tag }}_${{ matrix.network_type }}
|
||||||
|
@ -83,7 +83,7 @@ jobs:
|
||||||
- tcp
|
- tcp
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- name: stop containers
|
- name: stop containers
|
||||||
run: |
|
run: |
|
||||||
docker rm -f $(docker ps -qa) || true
|
docker rm -f $(docker ps -qa) || true
|
||||||
|
@ -136,7 +136,7 @@ jobs:
|
||||||
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
erlang sh -c "make apps/emqx_auth_mongo-ct"
|
erlang sh -c "make apps/emqx_auth_mongo-ct"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: logs_mongo${{ matrix.mongo_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
name: logs_mongo${{ matrix.mongo_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
||||||
|
@ -159,7 +159,7 @@ jobs:
|
||||||
- tcp
|
- tcp
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- name: stop containers
|
- name: stop containers
|
||||||
run: |
|
run: |
|
||||||
docker rm -f $(docker ps -qa) || true
|
docker rm -f $(docker ps -qa) || true
|
||||||
|
@ -224,7 +224,7 @@ jobs:
|
||||||
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
erlang sh -c "make apps/emqx_auth_mysql-ct"
|
erlang sh -c "make apps/emqx_auth_mysql-ct"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: logs_mysql${{ matrix.mysql_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
name: logs_mysql${{ matrix.mysql_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
||||||
|
@ -249,7 +249,7 @@ jobs:
|
||||||
- tls
|
- tls
|
||||||
- tcp
|
- tcp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- name: stop containers
|
- name: stop containers
|
||||||
run: |
|
run: |
|
||||||
docker rm -f $(docker ps -qa) || true
|
docker rm -f $(docker ps -qa) || true
|
||||||
|
@ -304,7 +304,7 @@ jobs:
|
||||||
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
erlang sh -c "make apps/emqx_auth_pgsql-ct"
|
erlang sh -c "make apps/emqx_auth_pgsql-ct"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: logs_pgsql${{ matrix.pgsql_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
name: logs_pgsql${{ matrix.pgsql_tag }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
||||||
|
@ -334,7 +334,7 @@ jobs:
|
||||||
connect_type: tls
|
connect_type: tls
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- name: stop containers
|
- name: stop containers
|
||||||
run: |
|
run: |
|
||||||
docker rm -f $(docker ps -qa) || true
|
docker rm -f $(docker ps -qa) || true
|
||||||
|
@ -431,7 +431,7 @@ jobs:
|
||||||
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
-e "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
erlang sh -c "make apps/emqx_auth_redis-ct"
|
erlang sh -c "make apps/emqx_auth_redis-ct"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: logs_redis${{ matrix.redis_tag }}_${{ matrix.node_type }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
name: logs_redis${{ matrix.redis_tag }}_${{ matrix.node_type }}_${{ matrix.network_type }}_${{ matrix.connect_type }}
|
||||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: "24.1.5"
|
otp-version: "24.1.5"
|
||||||
|
@ -75,7 +75,7 @@ jobs:
|
||||||
- dns
|
- dns
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: "24.1.5"
|
otp-version: "24.1.5"
|
||||||
|
@ -175,7 +175,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
kubectl describe pods emqx-2
|
kubectl describe pods emqx-2
|
||||||
kubectl logs emqx-2
|
kubectl logs emqx-2
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: emqx/paho.mqtt.testing
|
repository: emqx/paho.mqtt.testing
|
||||||
ref: develop-4.0
|
ref: develop-4.0
|
||||||
|
@ -211,7 +211,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
name: Checkout
|
name: Checkout
|
||||||
with:
|
with:
|
||||||
path: emqx
|
path: emqx
|
||||||
|
@ -260,7 +260,7 @@ jobs:
|
||||||
PROFILE: "${{ needs.relup_test_plan.outputs.profile }}"
|
PROFILE: "${{ needs.relup_test_plan.outputs.profile }}"
|
||||||
BROKER: "${{ needs.relup_test_plan.outputs.broker }}"
|
BROKER: "${{ needs.relup_test_plan.outputs.broker }}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
name: Checkout
|
name: Checkout
|
||||||
with:
|
with:
|
||||||
path: emqx
|
path: emqx
|
||||||
|
@ -273,7 +273,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
- name: Build emqx
|
- name: Build emqx
|
||||||
run: make -C emqx ${PROFILE}-zip
|
run: make -C emqx ${PROFILE}-zip
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
name: Upload built emqx and test scenario
|
name: Upload built emqx and test scenario
|
||||||
with:
|
with:
|
||||||
name: emqx_built
|
name: emqx_built
|
||||||
|
@ -302,12 +302,12 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
name: Download built emqx and test scenario
|
name: Download built emqx and test scenario
|
||||||
with:
|
with:
|
||||||
name: emqx_built
|
name: emqx_built
|
||||||
path: emqx_built
|
path: emqx_built
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
name: Checkout one_more_emqx
|
name: Checkout one_more_emqx
|
||||||
with:
|
with:
|
||||||
repository: terry-xiaoyu/one_more_emqx
|
repository: terry-xiaoyu/one_more_emqx
|
||||||
|
@ -332,7 +332,7 @@ jobs:
|
||||||
--var FROM_OTP_VSN="${old_otp_vsn}" \
|
--var FROM_OTP_VSN="${old_otp_vsn}" \
|
||||||
--var TO_OTP_VSN="24.3.4.2-1" \
|
--var TO_OTP_VSN="24.3.4.2-1" \
|
||||||
emqx_built/.ci/fvt_tests/relup.lux
|
emqx_built/.ci/fvt_tests/relup.lux
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
name: Save debug data
|
name: Save debug data
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Install gitlint
|
- name: Install gitlint
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Install shellcheck
|
- name: Install shellcheck
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
Loading…
Reference in New Issue