ci: upgrade actions

This commit is contained in:
Kévin Dunglas 2023-06-28 22:59:54 +02:00
parent 11b1904a3d
commit c5a8052040
2 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ jobs:
install: true
- name: Build test image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
@ -40,7 +40,7 @@ jobs:
- name: Run tests
run: |
docker load -i /tmp/.builder.tar
docker run --rm frankenphp:${{ github.sha }}-builder "go test -race -v"
docker run --rm frankenphp:${{ github.sha }}-builder "sh -c 'go test -race -v ./... && cd caddy && go test -race -v ./...'"
push-image:
runs-on: ubuntu-latest
strategy:
@ -86,11 +86,11 @@ jobs:
with:
install: true
- name: Setup QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build and Push Image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}

View File

@ -19,7 +19,7 @@ jobs:
install: true
- name: Build test image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
@ -35,7 +35,7 @@ jobs:
- name: Run tests
run: |
docker load -i /tmp/.builder.tar
docker run --rm frankenphp:${{ github.sha }}-builder "go test -a -v"
docker run --rm frankenphp:${{ github.sha }}-builder "sh -c 'go test -race -v ./... && cd caddy && go test -race -v ./...'"
push-image:
runs-on: ubuntu-latest
strategy:
@ -75,11 +75,11 @@ jobs:
with:
install: true
- name: Setup QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build and Push Image
uses: docker/build-push-action@v3
- name: Build Image
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}