Skip to content

buildx bug (now fixed) prevents using "docker compose" in a workflow #5896

@faried

Description

@faried

Bug report info

act version:            0.2.80
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	$HOME/.docker/run/docker.sock
Config files:           
	/Users/fn/Library/Application Support/act/actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.24.5
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.80
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               arm64
		GOOS:                 darwin
		GOARM64:              v8.0

Command used with act

act --secret-file ~/tmp/secrets --container-architecture linux/arm64 -W .github/workflows/50-deploy-ecr.yml

Describe issue

The issue: docker/buildx#3328

It's fixed in v0.26.1, but act 0.2.80 uses 0.26.0-1.

Link to GitHub repository

No response

Workflow content

name: Push images to ECR
on:
  push:
    branches: [ "master" ]

jobs:
  push-to-ecr:
    name: Build Docker Image
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: ${{ secrets.AWS_REGION }}

      - name: Login to Amazon ECR
        id: login-ecr
        uses: aws-actions/amazon-ecr-login@v2

      - name: Build, tag, and push docker image to Amazon ECR
        env:
          REGISTRY: ${{ steps.login-ecr.outputs.registry }}
          REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
        run: |
          # fails here:
          docker compose -f docker-compose-build-only.prod.yml build

Relevant log output

[Push images to ECR/Build Docker Image]   🐳  docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir=
[Push images to ECR/Build Docker Image] [DEBUG] Exec command '[bash -e /var/run/act/workflow/3]'
[Push images to ECR/Build Docker Image] [DEBUG] Working directory '/Users/fn/Repositories/***/***'
| #1 [internal] load local bake definitions
| #1 reading from stdin 2.90kB done
| #1 DONE 0.0s
| failed to find target default
| 
[Push images to ECR/Build Docker Image]   ❌  Failure - Main Build, tag, and push docker image to Amazon ECR [229.487792ms]
[Push images to ECR/Build Docker Image] exitcode '1': failure

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions