2020 - id : nvm
2121 run : echo ::set-output name=NVMRC::$(cat .nvmrc)
2222
23- - uses : actions/setup-node@v2.2.0
23+ - uses : actions/setup-node@v3
2424 with :
2525 node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
2626 cache : yarn
4242 - id : nvm
4343 run : echo ::set-output name=NVMRC::$(cat .nvmrc)
4444
45- - uses : actions/setup-node@v2.2.0
45+ - uses : actions/setup-node@v3
4646 with :
4747 node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
4848 cache : yarn
7878 - id : nvm
7979 run : echo ::set-output name=NVMRC::$(cat .nvmrc)
8080
81- - uses : actions/setup-node@v2.2.0
81+ - uses : actions/setup-node@v3
8282 with :
8383 node-version : ' ${{ steps.nvm.outputs.NVMRC }}'
8484 cache : yarn
8888 with :
8989 go-version : ' ^1.21.1'
9090
91- - name : Set up QEMU
92- uses : docker/setup-qemu-action@v3
93- - name : Set up Docker Buildx
94- uses : docker/setup-buildx-action@v3
95- with :
96- platforms : linux/amd64,linux/arm64
97-
9891 - run : yarn install --frozen-lockfile
9992
10093 - name : Build
@@ -104,20 +97,11 @@ jobs:
10497 make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} start-docker
10598
10699 - if : startsWith(github.ref, 'refs/tags/')
107- run : make save-docker
108-
109- - if : startsWith(github.ref, 'refs/tags/')
110- 100+ uses : actions/upload-artifact@v3
111101 with :
112102 name : smocker-bin
113103 path : ./build/smocker.tar.gz
114104
115- - if : startsWith(github.ref, 'refs/tags/')
116- 117- with :
118- name : smocker-docker
119- path : /tmp/smocker.tar
120-
121105 deploy :
122106 needs : [lint, test, build]
123107 if : startsWith(github.ref, 'refs/tags/')
@@ -128,30 +112,31 @@ jobs:
128112 - id : extract_ref
129113 run : echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/})
130114
131- - uses : actions/download-artifact@v2
115+ - uses : actions/download-artifact@v3
132116 with :
133117 name : smocker-bin
134118 path : ./build
135119
136- - uses : actions/download-artifact@v2
137- with :
138- name : smocker-docker
139- path : /tmp
140-
141- - run : make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} load-docker
120+ - run : cd build && tar -xvf smocker.tar.gz
142121
143122 - name : Docker login
144- uses : docker/login-action@v1.10.0
123+ uses : docker/login-action@v3
145124 with :
146125 username : ${{ secrets.DOCKER_USERNAME }}
147126 password : ${{ secrets.DOCKER_PASSWORD }}
148127
128+ - name : Set up QEMU
129+ uses : docker/setup-qemu-action@v3
130+ - name : Set up Docker Buildx
131+ uses : docker/setup-buildx-action@v3
132+ with :
133+ platforms : linux/amd64,linux/arm64
134+
149135 - name : Deploy on Docker registry
150136 run : make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} deploy-docker
151137
152138 - name : Deploy on GitHub releases
153- uses : softprops/action-gh-release@v0.1.5
139+ uses : softprops/action-gh-release@v1
154140 with :
155141 files : build/smocker.tar.gz
156- env :
157- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
142+ token : ${{ secrets.GH_TOKEN }}
0 commit comments