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

Allow changing the image used for build summary generation #407

Closed
pagelypete opened this issue Jul 10, 2024 · 1 comment
Closed

Allow changing the image used for build summary generation #407

pagelypete opened this issue Jul 10, 2024 · 1 comment

Comments

@pagelypete
Copy link

Is it possible to allow changing the image, or at least specifying a prefix that isn't docker.io for the build summary generation image? We have a lot of GitHub Actions runners in AWS but they are behind a NAT instance so they share a single IP address. We have a pull through cache that we use so that we aren't hitting Docker Hub super frequently and using up precious pull quota, but this summary feature unfortunately always pulls an image from Docker Hub so we had to turn it off.

If we could provide our own image to pull then we could still use the feature.

Thanks!

@crazy-max
Copy link
Member

crazy-max commented Jul 30, 2024

Should be fixed with #410 using DOCKER_BUILD_EXPORT_BUILD_IMAGE env var:

name: ci

on:
  push:

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v3
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build and push
        uses: docker/build-push-action@v6
        with:
          tags: user/app:latest
        env:
          DOCKER_BUILD_EXPORT_BUILD_IMAGE: dockereng/export-build:latest

@dvdksn We should update docs at:

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

2 participants