fix buildx

This commit is contained in:
Pavel 2023-10-13 15:21:30 +03:00
parent f06e833cf0
commit 8b888adeed

View File

@ -11,8 +11,7 @@ jobs:
fail-fast: false
matrix:
docker-file:
- path: latest
tags: "latest"
- tags: "latest"
platforms: linux/amd64,linux/arm64
steps:
@ -58,8 +57,8 @@ jobs:
if: success() && !contains(github.ref, 'master')
with:
push: false
context: ./${{ matrix.docker-file.path }}
file: ./${{ matrix.docker-file.path }}/Dockerfile
context: ./
file: ./Dockerfile
build-args: REFRESHED_AT=$(date +%Y-%m-%d)
platforms: ${{ matrix.docker-file.platforms }}
tags: ${{ steps.prepare.outputs.tags }}
@ -76,8 +75,8 @@ jobs:
if: success() && contains(github.ref, 'master')
with:
push: true
context: ./${{ matrix.docker-file.path }}
file: ./${{ matrix.docker-file.path }}/Dockerfile
context: ./
file: ./Dockerfile
build-args: REFRESHED_AT=$(date +%Y-%m-%d)
platforms: ${{ matrix.docker-file.platforms }}
tags: ${{ steps.prepare.outputs.tags }}