44 branches :
55 - main
66 - chore-upgrade_workflow
7+
8+ concurrency :
9+ group : " ${{ github.workflow }} @ ${{ github.ref }}"
10+ cancel-in-progress : true
11+
712env :
813 DOKKU_REMOTE_BRANCH : " master"
914 DOKKU_REMOTE_URL : " ssh://dokku@ui-2.prod.codeforafrica.org/sensors-africa-ui"
1419 NEXT_PUBLIC_APP_API_STATIC_URL : " https://api.sensors.africa/static/v2"
1520 NEXT_PUBLIC_APP_MAP_URL : " https://v2.map.aq.sensors.africa"
1621
17-
1822jobs :
1923 deploy :
20- runs-on : ubuntu-latest
24+ strategy :
25+ matrix :
26+ node-version : [20.16]
27+ os : [ubuntu-latest]
28+ runs-on : ${{ matrix.os }}
2129 steps :
22- - name : Cancel Previous Runs
23- uses : styfle/cancel-workflow-action@0.9.1
24- with :
25- access_token : ${{ github.token }}
26-
2730 - name : Checkout
2831 uses : actions/checkout@v2
2932 with :
@@ -32,13 +35,13 @@ jobs:
3235 # Set up Node since it's required by version-check
3336 # https://github.com/EndBug/version-check#github-workflow
3437 - name : Setup Node.js
35- uses : actions/setup-node@v2
38+ uses : actions/setup-node@v4
3639 with :
37- node-version : " 18 "
40+ node-version : ${{ matrix.node-version }}
3841
3942 - name : Check if version is bumped
4043 id : version-check
41- uses : EndBug/version-check@v1
44+ uses : EndBug/version-check@v2
4245 with :
4346 # Whether to search in every commit's diff.
4447 # This is useful if you often do change the version without saying it
4750 # omit this.
4851 diff-search : true
4952
53+ # Add support for more platforms with QEMU (optional)
54+ - name : Set up QEMU
55+ uses : docker/setup-qemu-action@v3
56+
5057 - name : Set up Docker Buildx
5158 # if: steps.version-check.outputs.changed == 'true'
5259 if : true
5562 - name : Cache Docker layers
5663 # if: steps.version-check.outputs.changed == 'true'
5764 if : true
58- uses : actions/cache@v3
65+ uses : actions/cache@v4
5966 with :
6067 key : ${{ runner.os }}-buildx-${{ github.sha }}
6168 path : /tmp/.buildx-cache
@@ -65,15 +72,15 @@ jobs:
6572 - name : Login to DockerHub
6673 # if: steps.version-check.outputs.changed == 'true'
6774 if : true
68- uses : docker/login-action@v1
75+ uses : docker/login-action@v3
6976 with :
7077 password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
7178 username : ${{ secrets.DOCKER_HUB_USERNAME }}
7279
7380 - name : Build Docker image
7481 # if: steps.version-check.outputs.changed == 'true'
7582 if : true
76- uses : docker/build-push-action@v2
83+ uses : docker/build-push-action@v6
7784 with :
7885 build-args : |
7986 NEXT_PUBLIC_APP_API_BASE_URL: ${{ env.NEXT_PUBLIC_APP_API_BASE_URL }}
8390 cache-from : type=local,src=/tmp/.buildx-cache
8491 cache-to : type=local,dest=/tmp/.buildx-cache-new
8592 context : .
93+ platforms : linux/arm64
8694 push : true
8795 # tags: "${{ env.IMAGE_NAME }}:${{ steps.version-check.outputs.version }}"
8896 tags : " ${{ env.IMAGE_NAME }}:0.4.29"
0 commit comments