File tree Expand file tree Collapse file tree 5 files changed +19
-22
lines changed Expand file tree Collapse file tree 5 files changed +19
-22
lines changed Original file line number Diff line number Diff line change 1111 name : test
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v3
1515 - name : Set up Go
16- uses : actions/setup-go@v2
16+ uses : actions/setup-go@v3
1717 with :
1818 go-version : 1.18
1919 - name : Install make
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ jobs:
1515 - name : install make
1616 run : sudo apt-get install make
1717 - name : set up go 1.x
18- uses : actions/setup-go@v2
18+ uses : actions/setup-go@v3
1919 with :
2020 go-version : 1.18
2121 - name : checkout
22- uses : actions/checkout@v2
22+ uses : actions/checkout@v3
2323 - name : run end-to-end tests
2424 run : make tests-e2e
2525 - name : upload e2e test logs
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
2222 - name : install make
2323 run : sudo apt-get install make
2424 - name : set up go 1.x
25- uses : actions/setup-go@v2
25+ uses : actions/setup-go@v3
2626 with :
2727 go-version : ${{ matrix.go }}
2828 - name : checkout
29- uses : actions/checkout@v2
29+ uses : actions/checkout@v3
3030 - name : build images
3131 run : make ci-images-build
3232 - name : podman login to quay.io
@@ -36,14 +36,13 @@ jobs:
3636 password : ${{ env.REGISTRY_PASSWORD }}
3737 registry : quay.io
3838 - name : get short sha
39- id : shortsha
40- run : echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
39+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
4140 - name : push to quay.io
4241 id : push-to-quay
4342 uses : redhat-actions/push-to-registry@v2
4443 with :
4544 image : ${{ env.IMAGE }}
46- tags : ${{ env.TAGS }} ${{ steps.shortsha.outputs .short_sha }}
45+ tags : ${{ env.TAGS }} ${{ env .short_sha }}
4746 registry : ${{ env.REGISTRY }}
4847 - name : print image url
4948 run : echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ jobs:
1313 push-pr-image :
1414 if : ${{ github.event.label.name == 'ok-to-test' }}
1515 name : push PR image
16- runs-on : ubuntu-20.04
16+ runs-on : ubuntu-latest
1717 strategy :
1818 matrix :
1919 go : ['1.18']
2020 steps :
2121 - name : install make
2222 run : sudo apt-get install make
2323 - name : set up go 1.x
24- uses : actions/setup-go@v2
24+ uses : actions/setup-go@v3
2525 with :
2626 go-version : ${{ matrix.go }}
2727 - name : checkout
28- uses : actions/checkout@v2
28+ uses : actions/checkout@v3
2929 with :
3030 ref : " refs/pull/${{ github.event.number }}/merge"
3131 - name : build images
@@ -37,16 +37,15 @@ jobs:
3737 password : ${{ secrets.QUAY_SECRET }}
3838 registry : quay.io
3939 - name : get short sha
40- id : shortsha
41- run : echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
40+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
4241 - name : push to quay.io
4342 id : push-to-quay
4443 uses : redhat-actions/push-to-registry@v2
4544 with :
4645 image : ${{ env.IMAGE }}
47- tags : ${{ steps.shortsha.outputs .short_sha }}
46+ tags : ${{ env .short_sha }}
4847 registry : ${{ env.REGISTRY }}
49- - uses : actions/github-script@v5
48+ - uses : actions/github-script@v6
5049 with :
5150 github-token : ${{secrets.GITHUB_TOKEN}}
5251 script : |
Original file line number Diff line number Diff line change @@ -19,27 +19,26 @@ jobs:
1919 go : ['1.18']
2020 steps :
2121 - name : checkout
22- uses : actions/checkout@v2
22+ uses : actions/checkout@v3
2323 - name : validate tag
24- id : validate_tag
2524 run : |
2625 tag=`git describe --exact-match --tags 2> /dev/null`
2726 if [[ $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then
2827 echo "$tag is a valid release tag"
2928 set -e
30- echo "::set-output name= tag:: $tag"
29+ echo "tag= $tag" >> $GITHUB_ENV
3130 else
3231 echo "$tag is NOT a valid release tag"
3332 exit 1
3433 fi
3534 - name : install make
3635 run : sudo apt-get install make
3736 - name : set up go 1.x
38- uses : actions/setup-go@v2
37+ uses : actions/setup-go@v3
3938 with :
4039 go-version : ${{ matrix.go }}
4140 - name : build images
42- run : SW_VERSION="${{ steps.validate_tag.outputs .tag }}" make image-build
41+ run : SW_VERSION="${{ env .tag }}" make image-build
4342 - name : podman login to quay.io
4443 uses : redhat-actions/podman-login@v1
4544 with :
5150 uses : redhat-actions/push-to-registry@v2
5251 with :
5352 image : ${{ env.IMAGE }}
54- tags : ${{ steps.validate_tag.outputs .tag }}
53+ tags : ${{ env .tag }}
5554 registry : ${{ env.REGISTRY }}
5655 - name : print image url
5756 run : echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
You can’t perform that action at this time.
0 commit comments