mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 01:13:56 +00:00
actions: w/a deprecated set-env
set-env is no longer allowed. Updated to use the new recommended syntax. Fixes: #1273 Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
This commit is contained in:
parent
0a3963f0bf
commit
e8e53b0661
58
.github/workflows/main.yaml
vendored
58
.github/workflows/main.yaml
vendored
@ -39,12 +39,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -67,12 +67,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -93,12 +93,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -119,12 +119,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -146,12 +146,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -173,12 +173,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -200,12 +200,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -227,12 +227,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -254,12 +254,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
if grep -q $buildstr ./artifact-list/artifact-list.txt; then
|
||||||
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
$GITHUB_WORKSPACE/.github/workflows/generate-artifact-tarball.sh $buildstr
|
||||||
echo ::set-env name=artifact-built::true
|
echo "artifact-built=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo ::set-env name=artifact-built::false
|
echo "artifact-built=false" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: store-artifacts
|
- name: store-artifacts
|
||||||
if: env.artifact-built == 'true'
|
if: ${{ env.artifact-built }} == 'true'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: kata-artifacts
|
name: kata-artifacts
|
||||||
@ -304,9 +304,7 @@ jobs:
|
|||||||
docker build --build-arg KATA_ARTIFACTS=kata-static.tar.xz -t katadocker/kata-deploy-ci:$pkg_sha ./packaging/kata-deploy
|
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 login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
||||||
docker push katadocker/kata-deploy-ci:$pkg_sha
|
docker push katadocker/kata-deploy-ci:$pkg_sha
|
||||||
|
echo "::set-output name=PKG_SHA::${pkg_sha}"
|
||||||
echo "##[set-output name=PKG_SHA;]${pkg_sha}"
|
|
||||||
echo ::set-env name=TAG::$tag
|
|
||||||
- name: test-kata-deploy-ci-in-aks
|
- name: test-kata-deploy-ci-in-aks
|
||||||
uses: ./packaging/kata-deploy/action
|
uses: ./packaging/kata-deploy/action
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user