@@ -15,12 +15,12 @@ jobs:
1515 lint :
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1919
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
@@ -35,22 +35,22 @@ jobs:
3535 test :
3636 runs-on : ubuntu-latest
3737 steps :
38- - uses : actions/checkout@v2
38+ - uses : actions/checkout@v4
3939 with :
4040 fetch-depth : 0
4141
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
4949
5050 - name : Setup Go environment
51- uses : actions/setup-go@v2.1.3
51+ uses : actions/setup-go@v4
5252 with :
53- go-version : ' ^1.18.0 '
53+ go-version : ' ^1.21.1 '
5454
5555 - run : yarn install --frozen-lockfile
5656
@@ -70,26 +70,23 @@ jobs:
7070 build :
7171 runs-on : ubuntu-latest
7272 steps :
73- - uses : actions/checkout@v2
73+ - uses : actions/checkout@v4
7474
7575 - id : extract_ref
7676 run : echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/})
7777
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
8585
8686 - name : Setup Go environment
87- uses : actions/setup-go@v2.1.3
87+ uses : actions/setup-go@v4
8888 with :
89- go-version : ' ^1.18.0'
90-
91- -
uses :
satackey/[email protected] 92- continue-on-error : true
89+ go-version : ' ^1.21.1'
9390
9491 - run : yarn install --frozen-lockfile
9592
@@ -100,54 +97,46 @@ jobs:
10097 make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} start-docker
10198
10299 - if : startsWith(github.ref, 'refs/tags/')
103- run : make save-docker
104-
105- - if : startsWith(github.ref, 'refs/tags/')
106- 100+ uses : actions/upload-artifact@v3
107101 with :
108102 name : smocker-bin
109103 path : ./build/smocker.tar.gz
110104
111- - if : startsWith(github.ref, 'refs/tags/')
112- 113- with :
114- name : smocker-docker
115- path : /tmp/smocker.tar
116-
117105 deploy :
118106 needs : [lint, test, build]
119107 if : startsWith(github.ref, 'refs/tags/')
120108 runs-on : ubuntu-latest
121109 steps :
122- - uses : actions/checkout@v2
110+ - uses : actions/checkout@v4
123111
124112 - id : extract_ref
125113 run : echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/})
126114
127- - uses : actions/download-artifact@v2
115+ - uses : actions/download-artifact@v3
128116 with :
129117 name : smocker-bin
130118 path : ./build
131119
132- - uses : actions/download-artifact@v2
133- with :
134- name : smocker-docker
135- path : /tmp
136-
137- - run : make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} load-docker
120+ - run : cd build && tar -xvf smocker.tar.gz
138121
139122 - name : Docker login
140- uses : docker/login-action@v1.10.0
123+ uses : docker/login-action@v3
141124 with :
142125 username : ${{ secrets.DOCKER_USERNAME }}
143126 password : ${{ secrets.DOCKER_PASSWORD }}
144127
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+
145135 - name : Deploy on Docker registry
146136 run : make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} deploy-docker
147137
148138 - name : Deploy on GitHub releases
149- uses : softprops/action-gh-release@v0.1.5
139+ uses : softprops/action-gh-release@v1
150140 with :
151141 files : build/smocker.tar.gz
152- env :
153- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
142+ token : ${{ secrets.GH_TOKEN }}
0 commit comments