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