diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index 6c08a6b..32ffb2d 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -6,7 +6,7 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: - build-image-for-amd: + build-image: runs-on: ubuntu-latest steps: - name: Checkout @@ -31,38 +31,7 @@ jobs: with: context: . push: true - platforms: linux/amd64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - - build-image-for-mac: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to Github - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ secrets.USERNAME }} - password: ${{ secrets.TOKEN }} - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/brreg/brok - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/arm64 - push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha