diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 718e4e1b11..d14c2fb670 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -38,9 +38,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -66,9 +66,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -92,9 +92,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -118,9 +118,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -145,9 +145,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -172,9 +172,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -199,9 +199,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -226,9 +226,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -253,9 +253,9 @@ jobs: run: | if grep -q $buildstr ./artifact-list/artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -303,9 +303,7 @@ jobs: docker build --build-arg KATA_ARTIFACTS=kata-static.tar.xz -t katadocker/kata-deploy-ci:$pkg_sha ./packaging/kata-deploy docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker push katadocker/kata-deploy-ci:$pkg_sha - - echo "##[set-output name=PKG_SHA;]${pkg_sha}" - echo ::set-env name=TAG::$tag + echo "::set-output name=PKG_SHA::${pkg_sha}" - name: test-kata-deploy-ci-in-aks uses: ./packaging/kata-deploy/action with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6a8ef6284d..e41e66584d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,9 +39,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -67,9 +67,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -93,9 +93,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -119,9 +119,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -145,9 +145,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -171,9 +171,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -198,9 +198,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -224,9 +224,9 @@ jobs: run: | if grep -q $buildstr artifact-list.txt; then $GITHUB_WORKSPACE/.github/workflows/generate-local-artifact-tarball.sh $buildstr - echo ::set-env name=artifact-built::true + echo "artifact-built=true" >> $GITHUB_ENV else - echo ::set-env name=artifact-built::false + echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts if: env.artifact-built == 'true' @@ -275,11 +275,9 @@ jobs: docker build --build-arg KATA_ARTIFACTS=kata-static.tar.xz -t katadocker/kata-deploy-ci:$pkg_sha $GITHUB_WORKSPACE/tools/packaging/kata-deploy docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker push katadocker/kata-deploy-ci:$pkg_sha - - echo "##[set-output name=PKG_SHA;]${pkg_sha}" - echo ::set-env name=TAG::$tag mkdir -p packaging/kata-deploy ln -s $GITHUB_WORKSPACE/tools/packaging/kata-deploy/action packaging/kata-deploy/action + echo "::set-output name=PKG_SHA::${pkg_sha}" - name: test-kata-deploy-ci-in-aks uses: ./packaging/kata-deploy/action with: diff --git a/tools/packaging/release/tag_repos.sh b/tools/packaging/release/tag_repos.sh index e8878d9264..1e51dbd2a4 100755 --- a/tools/packaging/release/tag_repos.sh +++ b/tools/packaging/release/tag_repos.sh @@ -69,6 +69,7 @@ info() { repos=( "kata-containers" + "tests" ) diff --git a/tools/packaging/release/update-repository-version.sh b/tools/packaging/release/update-repository-version.sh index 4651b4cf88..2b51a8afe9 100755 --- a/tools/packaging/release/update-repository-version.sh +++ b/tools/packaging/release/update-repository-version.sh @@ -165,6 +165,7 @@ EOT repos=( "kata-containers" + "tests" ) main(){