|
6 | 6 | - 'v*'
|
7 | 7 |
|
8 | 8 | name: Upload Release Asset
|
| 9 | +env: |
| 10 | + IMAGENAME: packethost/cluster-api-provider-packet |
| 11 | + KUBEBUILDER_DIR: /tmp/kubebuilder_install |
9 | 12 |
|
10 | 13 | jobs:
|
11 | 14 | readiness:
|
12 | 15 | name: check for appropriate image
|
13 | 16 | runs-on: ubuntu-latest
|
14 | 17 | steps:
|
15 |
| - - name: Set version and imagename |
| 18 | + - name: Set version |
16 | 19 | id: get_version
|
17 | 20 | run: |
|
18 |
| - echo ::set-env name=VERSION::${GITHUB_REF/refs\/tags\//} |
19 |
| - echo ::set-env name=IMAGENAME::packethost/cluster-api-provider-packet |
20 |
| - echo ::set-env name=COMMIT::${GITHUB_SHA} |
| 21 | + echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV |
| 22 | + echo "COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV |
21 | 23 | - name: information
|
22 | 24 | run: echo "checking for existence of image ${IMAGENAME}:${COMMIT}. If it does not exist, this will fail; wait for an earlier PR merge action to complete and re-run this job."
|
23 | 25 | - name: docker login
|
|
36 | 38 | - name: Checkout code
|
37 | 39 | uses: actions/checkout@v2
|
38 | 40 |
|
39 |
| - - name: kubebuilder-env |
40 |
| - run: echo "::set-env name=KUBEBUILDER_DIR::/tmp/kubebuilder_install" |
41 | 41 | - name: kubebuilder
|
42 | 42 | run: make kubebuilder KUBEBUILDER_DIR=${KUBEBUILDER_DIR} # we use this dir because /usr/local/kubebuilder is protected
|
43 | 43 | - name: manifest
|
|
46 | 46 | KUBEBUILDER_ASSETS: ${{ env.KUBEBUILDER_DIR }}/bin
|
47 | 47 | - name: Get the version
|
48 | 48 | id: get_version
|
49 |
| - run: echo ::set-env name=VERSION::${GITHUB_REF/refs\/tags\//} |
| 49 | + run: | |
| 50 | + echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV |
50 | 51 | - name: Create Release
|
51 | 52 | id: create_release
|
52 | 53 | uses: actions/create-release@v1
|
@@ -108,9 +109,8 @@ jobs:
|
108 | 109 | - name: Set version and imagename
|
109 | 110 | id: get_version
|
110 | 111 | run: |
|
111 |
| - echo ::set-env name=VERSION::${GITHUB_REF/refs\/tags\//} |
112 |
| - echo ::set-env name=IMAGENAME::packethost/cluster-api-provider-packet |
113 |
| - echo ::set-env name=COMMIT::${GITHUB_SHA} |
| 112 | + echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV |
| 113 | + echo "COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV |
114 | 114 | - name: get-image
|
115 | 115 | run: docker image pull ${IMAGENAME}:${COMMIT}
|
116 | 116 | - name: release-latest
|
|
0 commit comments