1212 runs-on : ubuntu-latest
1313 permissions :
1414 contents : read
15-
15+
1616 steps :
1717 - uses : actions/checkout@v2
1818
@@ -36,12 +36,12 @@ jobs:
3636
3737 - name : run shellcheck
3838 run : shellcheck **/*.*sh
39-
39+
4040 docker-lint :
4141 runs-on : ubuntu-latest
4242 permissions :
4343 contents : read
44-
44+
4545 steps :
4646 - uses : actions/checkout@v2
4747
@@ -53,16 +53,19 @@ jobs:
5353 runs-on : ubuntu-latest
5454 permissions :
5555 contents : read
56-
56+
5757 steps :
5858 - name : Checkout
5959 uses : actions/checkout@v2
6060
61+ - name : Set up QEMU
62+ uses : docker/setup-qemu-action@v3
63+
6164 - name : Set up Docker Buildx
62- uses : docker/setup-buildx-action@v1
65+ uses : docker/setup-buildx-action@v3
6366
6467 - name : Cache Docker layers
65- uses : actions/cache@v2
68+ uses : actions/cache@v4
6669 with :
6770 path : /tmp/.buildx-cache
6871 key : ${{ runner.os }}-buildx-
@@ -72,21 +75,22 @@ jobs:
7275 - name : Get git short hash
7376 id : shorthash
7477 run : |
75- echo "::set-output name=shorthash::$(git rev-parse --short HEAD)"
78+ echo "::set-output name=shorthash::$(git rev-parse --short HEAD)"
7679
7780 - name : Build and push
78- uses : docker/build-push-action@v2
81+ uses : docker/build-push-action@v6
7982 with :
8083 context : ./src
8184 push : false
8285 tags : ${{ format('haskell-dev-tools-test:{0}', steps.shorthash.outputs.shorthash) }}
8386 cache-from : type=local,src=/tmp/.buildx-cache
8487 cache-to : type=local,dest=/tmp/.buildx-cache-new
88+ platforms : linux/amd64,linux/arm64
8589
8690 - # Temp fix
8791 # https://github.com/docker/build-push-action/issues/252
8892 # https://github.com/moby/buildkit/issues/1896
8993 name : Move cache
9094 run : |
9195 rm -rf /tmp/.buildx-cache
92- mv /tmp/.buildx-cache-new /tmp/.buildx-cache
96+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
0 commit comments