Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with podman #294

Open
3 tasks done
hasufell opened this issue Jan 30, 2024 · 0 comments
Open
3 tasks done

Does not work with podman #294

hasufell opened this issue Jan 30, 2024 · 0 comments

Comments

@hasufell
Copy link

hasufell commented Jan 30, 2024

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

Fails to execute on a privately hosted runner that has latest podman installed:

https://github.com/haskell/ghcup-hs/actions/runs/7707962171/job/21006371122#step:5:179

Creating a new builder instance
  /usr/bin/docker buildx create --name builder-2c6f814d-5ebd-4b56-9713-6a5544db6561 --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use
  Error: unknown flag: --name
  See 'podman buildx --help'

Expected behaviour

Works with podman.

Actual behaviour

Does not work with podman.

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Docker image builds

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

jobs:
  docker-alpine32:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v2
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push (alpine 32bit)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/alpine32
          push: true
          tags: hasufell/i386-alpine-haskell:3.12
          platforms: |
            linux/i386
            linux/amd64

  docker-alpine:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v2
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push (alpine 64bit)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/alpine64
          push: true
          tags: hasufell/alpine-haskell:3.12
          platforms: linux/amd64

  docker-arm32:
    runs-on: [self-hosted, Linux, ARM64]
    steps:
      - uses: docker://arm64v8/ubuntu:focal
        name: Cleanup (aarch64 linux)
        continue-on-error: true
        with:
          args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"

      - name: Checkout
        uses: actions/checkout@v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2

      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and push (debian buster)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/arm32v7/buster
          push: true
          tags: hasufell/arm32v7-debian-haskell:10
          platforms: linux/arm

      - name: Build and push (ubuntu focal)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/arm32v7/focal
          push: true
          tags: hasufell/arm32v7-ubuntu-haskell:focal
          platforms: linux/arm

  docker-aarch:
    runs-on: [self-hosted, Linux, ARM64]
    steps:
      - uses: docker://arm64v8/ubuntu:focal
        name: Cleanup (aarch64 linux)
        continue-on-error: true
        with:
          args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"

      - name: Checkout
        uses: actions/checkout@v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2

      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and push (debian buster)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/arm64v8/buster
          push: true
          tags: hasufell/arm64v8-debian-haskell:10
          platforms: linux/arm64

      - name: Build and push (ubuntu focal)
        uses: docker/build-push-action@v3
        with:
          context: ./docker/arm64v8/focal
          push: true
          tags: hasufell/arm64v8-ubuntu-haskell:focal
          platforms: linux/arm64

Workflow logs

https://github.com/haskell/ghcup-hs/actions/runs/7707962171/job/21006371122#step:5:179

BuildKit logs

No response

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant