build-push-action icon indicating copy to clipboard operation
build-push-action copied to clipboard

Local image not being recognized by workflow, using named context doesn't help

Open anthonyma94 opened this issue 1 year ago • 0 comments

Contributing guidelines

I've found a bug, and:

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

Description

Following docs from here and here, I've built a local image on one job (build-base) and uploaded the artifact, then downloaded and restored it on another (build-prod) and added it to build context. However, it still tries to pull the local image from external registry and fails.

Expected behaviour

It should read local image

Actual behaviour

Doesn't read local image

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Build Docker image with base + prod Dockerfiles

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  release:
    types: [published]
  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

env:
  BASE_DOCKER_IMAGE: dmca-base
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

jobs:
  build-dist:
    runs-on: ubuntu-latest
    name: Build affected projects
    outputs:
      affected: ${{ steps.affected.outputs.apps }}
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: yarn
      - name: Install dependencies
        run: yarn install --frozen-lockfile
      - uses: nrwl/nx-set-shas@v4
        with:
          main-branch-name: develop
      - id: affected
        run: echo "apps=$(yarn --silent nx show projects --affected --type app --json)" >> $GITHUB_OUTPUT
      - name: Build affected projects
        run: yarn nx affected -t build --configuration production --runner=ci
      - name: Upload dist artifact
        uses: actions/upload-artifact@v4
        with:
          name: dist
          path: |
            dist
            !dist/.playwright

  build-base:
    runs-on: ubuntu-latest
    name: Build base Dockerfile
    steps:
      - uses: actions/checkout@v4
      - uses: docker/setup-buildx-action@v3
      - name: Build base Dockerfile
        uses: docker/build-push-action@v5
        with:
          context: .
          file: base.Dockerfile
          tags: ${{ env.BASE_DOCKER_IMAGE }}:latest
          outputs: type=docker,dest=/tmp/${{ env.BASE_DOCKER_IMAGE }}.tar
          load: true
      - name: Upload base image
        uses: actions/upload-artifact@v4
        with:
          name: ${{ env.BASE_DOCKER_IMAGE }}
          path: /tmp/${{ env.BASE_DOCKER_IMAGE }}.tar

  build-prod:
    runs-on: ubuntu-latest
    needs: [build-base, build-dist]
    strategy:
      matrix:
        app: ${{ fromJson(needs.build-dist.outputs.affected) }}
    name: Build and push ${{ matrix.app }} image
    steps:
      - uses: docker/setup-buildx-action@v3
      - name: Download dist artifact
        uses: actions/download-artifact@v4
        with:
          name: dist
          path: dist
      - name: Download base Docker image
        uses: actions/download-artifact@v4
        with:
          name: ${{ env.BASE_DOCKER_IMAGE }}
          path: /tmp
      - name: Load base Docker image
        run: |
          docker load --input /tmp/${{ env.BASE_DOCKER_IMAGE }}.tar
      - name: Login to Github Packages
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
      - name: Build and push ${{ matrix.app }}
        uses: docker/build-push-action@v5
        with:
          context: dist/apps/${{ matrix.app }}
          build-contexts: |
            ${{ env.BASE_DOCKER_IMAGE }}=docker-image://${{ env.BASE_DOCKER_IMAGE }}:latest
          tags: |
            ghcr.io/domain/${{ matrix.app }}:${{ github.event.release.tag_name || 'latest' }}
            ghcr.io/domain/${{ matrix.app }}:latest
          build-args: |
            TAG=${{ github.event.release.tag_name }}
          push: false

Workflow logs

2024-05-10T17:36:52.9504679Z Current runner version: '2.316.1' 2024-05-10T17:36:52.9528204Z ##[group]Operating System 2024-05-10T17:36:52.9528966Z Ubuntu 2024-05-10T17:36:52.9529335Z 22.04.4 2024-05-10T17:36:52.9529621Z LTS 2024-05-10T17:36:52.9530023Z ##[endgroup] 2024-05-10T17:36:52.9530413Z ##[group]Runner Image 2024-05-10T17:36:52.9530800Z Image: ubuntu-22.04 2024-05-10T17:36:52.9531276Z Version: 20240422.1.0 2024-05-10T17:36:52.9532249Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240422.1/images/ubuntu/Ubuntu2204-Readme.md 2024-05-10T17:36:52.9533656Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240422.1 2024-05-10T17:36:52.9534566Z ##[endgroup] 2024-05-10T17:36:52.9534974Z ##[group]Runner Image Provisioner 2024-05-10T17:36:52.9535468Z 2.0.369.1 2024-05-10T17:36:52.9535853Z ##[endgroup] 2024-05-10T17:36:52.9538107Z ##[group]GITHUB_TOKEN Permissions 2024-05-10T17:36:52.9539718Z Actions: write 2024-05-10T17:36:52.9540438Z Attestations: write 2024-05-10T17:36:52.9540979Z Checks: write 2024-05-10T17:36:52.9541354Z Contents: write 2024-05-10T17:36:52.9541746Z Deployments: write 2024-05-10T17:36:52.9542171Z Discussions: write 2024-05-10T17:36:52.9542544Z Issues: write 2024-05-10T17:36:52.9542934Z Metadata: read 2024-05-10T17:36:52.9543358Z Packages: write 2024-05-10T17:36:52.9543736Z Pages: write 2024-05-10T17:36:52.9544118Z PullRequests: write 2024-05-10T17:36:52.9544560Z RepositoryProjects: write 2024-05-10T17:36:52.9545009Z SecurityEvents: write 2024-05-10T17:36:52.9545428Z Statuses: write 2024-05-10T17:36:52.9545847Z ##[endgroup] 2024-05-10T17:36:52.9548813Z Secret source: Actions 2024-05-10T17:36:52.9549410Z Prepare workflow directory 2024-05-10T17:36:53.0367350Z Prepare all required actions 2024-05-10T17:36:53.0526285Z Getting action download info 2024-05-10T17:36:53.2128053Z Download action repository 'docker/setup-buildx-action@v3' (SHA:d70bba72b1f3fd22344832f00baa16ece964efeb) 2024-05-10T17:36:53.6233982Z Download action repository 'actions/download-artifact@v4' (SHA:65a9edc5881444af0b9093a5e628f2fe47ea3b2e) 2024-05-10T17:36:53.8816088Z Download action repository 'docker/login-action@v3' (SHA:e92390c5fb421da1463c202d546fed0ec5c39f20) 2024-05-10T17:36:54.0790103Z Download action repository 'docker/build-push-action@v5' (SHA:2cdde995de11925a030ce8070c3d77a52ffcf1c0) 2024-05-10T17:36:54.4516246Z Complete job name: Build and push api image 2024-05-10T17:36:54.5261068Z ##[group]Run docker/setup-buildx-action@v3 2024-05-10T17:36:54.5261608Z with: 2024-05-10T17:36:54.5261891Z driver: docker-container 2024-05-10T17:36:54.5262751Z buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host 2024-05-10T17:36:54.5263678Z install: false 2024-05-10T17:36:54.5263974Z use: true 2024-05-10T17:36:54.5264242Z cache-binary: true 2024-05-10T17:36:54.5264569Z cleanup: true 2024-05-10T17:36:54.5264850Z env: 2024-05-10T17:36:54.5265108Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:36:54.5265472Z ##[endgroup] 2024-05-10T17:36:54.8610840Z ##[group]Docker info 2024-05-10T17:36:54.8613525Z [command]/usr/bin/docker version 2024-05-10T17:36:54.9541768Z Client: Docker Engine - Community 2024-05-10T17:36:54.9542682Z Version: 24.0.9 2024-05-10T17:36:54.9543517Z API version: 1.43 2024-05-10T17:36:54.9544428Z Go version: go1.20.13 2024-05-10T17:36:54.9545250Z Git commit: 2936816 2024-05-10T17:36:54.9546162Z Built: Thu Feb 1 00:48:39 2024 2024-05-10T17:36:54.9547017Z OS/Arch: linux/amd64 2024-05-10T17:36:54.9547816Z Context: default 2024-05-10T17:36:54.9548346Z 2024-05-10T17:36:54.9611834Z Server: Docker Engine - Community 2024-05-10T17:36:54.9612588Z Engine: 2024-05-10T17:36:54.9613060Z Version: 24.0.9 2024-05-10T17:36:54.9613746Z API version: 1.43 (minimum version 1.12) 2024-05-10T17:36:54.9614582Z Go version: go1.20.13 2024-05-10T17:36:54.9615236Z Git commit: fca702d 2024-05-10T17:36:54.9615889Z Built: Thu Feb 1 00:48:39 2024 2024-05-10T17:36:54.9617165Z OS/Arch: linux/amd64 2024-05-10T17:36:54.9617834Z Experimental: false 2024-05-10T17:36:54.9618402Z containerd: 2024-05-10T17:36:54.9618876Z Version: 1.6.31 2024-05-10T17:36:54.9619668Z GitCommit: e377cd56a71523140ca6ae87e30244719194a521 2024-05-10T17:36:54.9620567Z runc: 2024-05-10T17:36:54.9621011Z Version: 1.1.12 2024-05-10T17:36:54.9621713Z GitCommit: v1.1.12-0-g51d5e94 2024-05-10T17:36:54.9622448Z docker-init: 2024-05-10T17:36:54.9622937Z Version: 0.19.0 2024-05-10T17:36:54.9623517Z GitCommit: de40ad0 2024-05-10T17:36:54.9834163Z [command]/usr/bin/docker info 2024-05-10T17:36:55.2135261Z Client: Docker Engine - Community 2024-05-10T17:36:55.2135904Z Version: 24.0.9 2024-05-10T17:36:55.2136304Z Context: default 2024-05-10T17:36:55.2136707Z Debug Mode: false 2024-05-10T17:36:55.2137091Z Plugins: 2024-05-10T17:36:55.2137475Z buildx: Docker Buildx (Docker Inc.) 2024-05-10T17:36:55.2138004Z Version: v0.14.0 2024-05-10T17:36:55.2138673Z Path: /usr/libexec/docker/cli-plugins/docker-buildx 2024-05-10T17:36:55.2139351Z compose: Docker Compose (Docker Inc.) 2024-05-10T17:36:55.2139885Z Version: v2.23.3 2024-05-10T17:36:55.2140509Z Path: /usr/libexec/docker/cli-plugins/docker-compose 2024-05-10T17:36:55.2141009Z 2024-05-10T17:36:55.2141149Z Server: 2024-05-10T17:36:55.2141479Z Containers: 0 2024-05-10T17:36:55.2141836Z Running: 0 2024-05-10T17:36:55.2142175Z Paused: 0 2024-05-10T17:36:55.2142510Z Stopped: 0 2024-05-10T17:36:55.2142844Z Images: 14 2024-05-10T17:36:55.2143194Z Server Version: 24.0.9 2024-05-10T17:36:55.2143626Z Storage Driver: overlay2 2024-05-10T17:36:55.2144068Z Backing Filesystem: extfs 2024-05-10T17:36:55.2144526Z Supports d_type: true 2024-05-10T17:36:55.2144949Z Using metacopy: false 2024-05-10T17:36:55.2145373Z Native Overlay Diff: false 2024-05-10T17:36:55.2145827Z userxattr: false 2024-05-10T17:36:55.2146275Z Logging Driver: json-file 2024-05-10T17:36:55.2146733Z Cgroup Driver: cgroupfs 2024-05-10T17:36:55.2147166Z Cgroup Version: 2 2024-05-10T17:36:55.2147541Z Plugins: 2024-05-10T17:36:55.2147875Z Volume: local 2024-05-10T17:36:55.2148339Z Network: bridge host ipvlan macvlan null overlay 2024-05-10T17:36:55.2149827Z Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog 2024-05-10T17:36:55.2150705Z Swarm: inactive 2024-05-10T17:36:55.2151132Z Runtimes: io.containerd.runc.v2 runc 2024-05-10T17:36:55.2151665Z Default Runtime: runc 2024-05-10T17:36:55.2152348Z Init Binary: docker-init 2024-05-10T17:36:55.2152947Z containerd version: e377cd56a71523140ca6ae87e30244719194a521 2024-05-10T17:36:55.2153721Z runc version: v1.1.12-0-g51d5e94 2024-05-10T17:36:55.2154222Z init version: de40ad0 2024-05-10T17:36:55.2154624Z Security Options: 2024-05-10T17:36:55.2154998Z apparmor 2024-05-10T17:36:55.2155326Z seccomp 2024-05-10T17:36:55.2155661Z Profile: builtin 2024-05-10T17:36:55.2156038Z cgroupns 2024-05-10T17:36:55.2156468Z Kernel Version: 6.5.0-1018-azure 2024-05-10T17:36:55.2156981Z Operating System: Ubuntu 22.04.4 LTS 2024-05-10T17:36:55.2157493Z OSType: linux 2024-05-10T17:36:55.2157884Z Architecture: x86_64 2024-05-10T17:36:55.2158271Z CPUs: 2 2024-05-10T17:36:55.2158611Z Total Memory: 7.744GiB 2024-05-10T17:36:55.2159070Z Name: fv-az711-73 2024-05-10T17:36:55.2159562Z ID: 584d62f5-11d9-4074-87e4-acacf60905a6 2024-05-10T17:36:55.2160121Z Docker Root Dir: /var/lib/docker 2024-05-10T17:36:55.2160601Z Debug Mode: false 2024-05-10T17:36:55.2160982Z Username: githubactions 2024-05-10T17:36:55.2161416Z Experimental: false 2024-05-10T17:36:55.2161821Z Insecure Registries: 2024-05-10T17:36:55.2162203Z 127.0.0.0/8 2024-05-10T17:36:55.2162570Z Live Restore Enabled: false 2024-05-10T17:36:55.2162883Z 2024-05-10T17:36:55.2163532Z ##[endgroup] 2024-05-10T17:36:55.4073496Z ##[group]Buildx version 2024-05-10T17:36:55.4077400Z [command]/usr/bin/docker buildx version 2024-05-10T17:36:55.4078643Z github.com/docker/buildx v0.14.0 171fcbeb69d67c90ba7f44f41a9e418f6a6ec1da 2024-05-10T17:36:55.4079840Z ##[endgroup] 2024-05-10T17:36:55.4080568Z ##[group]Creating a new builder instance 2024-05-10T17:36:55.4556566Z [command]/usr/bin/docker buildx create --name builder-846d3793-1755-481e-9613-85bdeb481d65 --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use 2024-05-10T17:36:55.5491178Z builder-846d3793-1755-481e-9613-85bdeb481d65 2024-05-10T17:36:55.5492509Z ##[endgroup] 2024-05-10T17:36:55.5493550Z ##[group]Booting builder 2024-05-10T17:36:55.5514510Z [command]/usr/bin/docker buildx inspect --bootstrap --builder builder-846d3793-1755-481e-9613-85bdeb481d65 2024-05-10T17:36:55.6120342Z #1 [internal] booting buildkit 2024-05-10T17:36:55.7465502Z #1 pulling image moby/buildkit:buildx-stable-1 2024-05-10T17:37:00.6466633Z #1 pulling image moby/buildkit:buildx-stable-1 5.1s done 2024-05-10T17:37:00.7961967Z #1 creating container buildx_buildkit_builder-846d3793-1755-481e-9613-85bdeb481d650 2024-05-10T17:37:01.0129197Z #1 creating container buildx_buildkit_builder-846d3793-1755-481e-9613-85bdeb481d650 0.4s done 2024-05-10T17:37:01.0193990Z #1 DONE 5.4s 2024-05-10T17:37:01.0914709Z Name: builder-846d3793-1755-481e-9613-85bdeb481d65 2024-05-10T17:37:01.0915698Z Driver: docker-container 2024-05-10T17:37:01.0916674Z Last Activity: 2024-05-10 17:36:55 +0000 UTC 2024-05-10T17:37:01.0917192Z 2024-05-10T17:37:01.0917368Z Nodes: 2024-05-10T17:37:01.0918086Z Name: builder-846d3793-1755-481e-9613-85bdeb481d650 2024-05-10T17:37:01.0920284Z Endpoint: unix:///var/run/docker.sock 2024-05-10T17:37:01.0921140Z Status: running 2024-05-10T17:37:01.0922523Z BuildKit daemon flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host 2024-05-10T17:37:01.0923673Z BuildKit version: v0.13.2 2024-05-10T17:37:01.0924382Z Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386 2024-05-10T17:37:01.0925135Z Labels: 2024-05-10T17:37:01.0925652Z org.mobyproject.buildkit.worker.executor: oci 2024-05-10T17:37:01.0926558Z org.mobyproject.buildkit.worker.hostname: a9cf9d28c2e7 2024-05-10T17:37:01.0927460Z org.mobyproject.buildkit.worker.network: host 2024-05-10T17:37:01.0928918Z org.mobyproject.buildkit.worker.oci.process-mode: sandbox 2024-05-10T17:37:01.0929865Z org.mobyproject.buildkit.worker.selinux.enabled: false 2024-05-10T17:37:01.0930782Z org.mobyproject.buildkit.worker.snapshotter: overlayfs 2024-05-10T17:37:01.0931516Z GC Policy rule#0: 2024-05-10T17:37:01.0931906Z All: false 2024-05-10T17:37:01.0932612Z Filters: type==source.local,type==exec.cachemount,type==source.git.checkout 2024-05-10T17:37:01.0933448Z Keep Duration: 48h0m0s 2024-05-10T17:37:01.0933874Z Keep Bytes: 488.3MiB 2024-05-10T17:37:01.0934295Z GC Policy rule#1: 2024-05-10T17:37:01.0934669Z All: false 2024-05-10T17:37:01.0935082Z Keep Duration: 1440h0m0s 2024-05-10T17:37:01.0935604Z Keep Bytes: 7.451GiB 2024-05-10T17:37:01.1032741Z GC Policy rule#2: 2024-05-10T17:37:01.1033483Z All: false 2024-05-10T17:37:01.1034147Z Keep Bytes: 7.451GiB 2024-05-10T17:37:01.1034594Z GC Policy rule#3: 2024-05-10T17:37:01.1034982Z All: true 2024-05-10T17:37:01.1035367Z Keep Bytes: 7.451GiB 2024-05-10T17:37:01.1036687Z ##[endgroup] 2024-05-10T17:37:01.2255507Z ##[group]Inspect builder 2024-05-10T17:37:01.2322927Z { 2024-05-10T17:37:01.2323677Z "nodes": [ 2024-05-10T17:37:01.2324211Z { 2024-05-10T17:37:01.2325035Z "name": "builder-846d3793-1755-481e-9613-85bdeb481d650", 2024-05-10T17:37:01.2325779Z "endpoint": "unix:///var/run/docker.sock", 2024-05-10T17:37:01.2326386Z "status": "running", 2024-05-10T17:37:01.2327567Z "buildkitd-flags": "--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host", 2024-05-10T17:37:01.2328674Z "buildkit": "v0.13.2", 2024-05-10T17:37:01.2329733Z "platforms": "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/386", 2024-05-10T17:37:01.2330453Z "features": { 2024-05-10T17:37:01.2331088Z "Automatically load images to the Docker Engine image store": true, 2024-05-10T17:37:01.2331901Z "Cache export": true, 2024-05-10T17:37:01.2332470Z "Docker exporter": true, 2024-05-10T17:37:01.2333143Z "Multi-platform build": true, 2024-05-10T17:37:01.2333725Z "OCI exporter": true 2024-05-10T17:37:01.2334208Z }, 2024-05-10T17:37:01.2334573Z "labels": { 2024-05-10T17:37:01.2335160Z "org.mobyproject.buildkit.worker.executor": "oci", 2024-05-10T17:37:01.2336115Z "org.mobyproject.buildkit.worker.hostname": "a9cf9d28c2e7", 2024-05-10T17:37:01.2337066Z "org.mobyproject.buildkit.worker.network": "host", 2024-05-10T17:37:01.2338196Z "org.mobyproject.buildkit.worker.oci.process-mode": "sandbox", 2024-05-10T17:37:01.2339264Z "org.mobyproject.buildkit.worker.selinux.enabled": "false", 2024-05-10T17:37:01.2340316Z "org.mobyproject.buildkit.worker.snapshotter": "overlayfs" 2024-05-10T17:37:01.2341103Z }, 2024-05-10T17:37:01.2341484Z "gcPolicy": [ 2024-05-10T17:37:01.2341881Z { 2024-05-10T17:37:01.2342257Z "all": false, 2024-05-10T17:37:01.2342656Z "filter": [ 2024-05-10T17:37:01.2343057Z "type==source.local", 2024-05-10T17:37:01.2343530Z "type==exec.cachemount", 2024-05-10T17:37:01.2344035Z "type==source.git.checkout" 2024-05-10T17:37:01.2344488Z ], 2024-05-10T17:37:01.2344868Z "keepDuration": "48h0m0s", 2024-05-10T17:37:01.2345389Z "keepBytes": "488.3MiB" 2024-05-10T17:37:01.2345851Z }, 2024-05-10T17:37:01.2346179Z { 2024-05-10T17:37:01.2346514Z "all": false, 2024-05-10T17:37:01.2346942Z "keepDuration": "1440h0m0s", 2024-05-10T17:37:01.2347462Z "keepBytes": "7.451GiB" 2024-05-10T17:37:01.2347929Z }, 2024-05-10T17:37:01.2348253Z { 2024-05-10T17:37:01.2348596Z "all": false, 2024-05-10T17:37:01.2349021Z "keepBytes": "7.451GiB" 2024-05-10T17:37:01.2349474Z }, 2024-05-10T17:37:01.2349802Z { 2024-05-10T17:37:01.2350134Z "all": true, 2024-05-10T17:37:01.2350544Z "keepBytes": "7.451GiB" 2024-05-10T17:37:01.2351272Z } 2024-05-10T17:37:01.2351608Z ] 2024-05-10T17:37:01.2352186Z } 2024-05-10T17:37:01.2352509Z ], 2024-05-10T17:37:01.2353109Z "name": "builder-846d3793-1755-481e-9613-85bdeb481d65", 2024-05-10T17:37:01.2353808Z "driver": "docker-container", 2024-05-10T17:37:01.2354398Z "lastActivity": "2024-05-10T17:36:55.000Z" 2024-05-10T17:37:01.2354910Z } 2024-05-10T17:37:01.2358158Z ##[endgroup] 2024-05-10T17:37:01.2359008Z ##[group]BuildKit version 2024-05-10T17:37:01.2359985Z builder-846d3793-1755-481e-9613-85bdeb481d650: v0.13.2 2024-05-10T17:37:01.2361157Z ##[endgroup] 2024-05-10T17:37:01.2746067Z ##[group]Run actions/download-artifact@v4 2024-05-10T17:37:01.2746508Z with: 2024-05-10T17:37:01.2746901Z name: dist 2024-05-10T17:37:01.2747212Z path: dist 2024-05-10T17:37:01.2747543Z merge-multiple: false 2024-05-10T17:37:01.2747989Z repository: company/repo 2024-05-10T17:37:01.2748375Z run-id: 9035920765 2024-05-10T17:37:01.2748699Z env: 2024-05-10T17:37:01.2749066Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:37:01.2749415Z ##[endgroup] 2024-05-10T17:37:01.5117028Z Downloading single artifact 2024-05-10T17:37:01.6127342Z Preparing to download the following artifacts: 2024-05-10T17:37:01.6128697Z - dist (ID: 1491987617, Size: 587940) 2024-05-10T17:37:01.6632732Z Redirecting to blob download url: https://productionresultssa5.blob.core.windows.net/actions-results/722bd63f-d7aa-4bff-83a9-42ec0f4dbabb/workflow-job-run-7408c091-d6cd-5fa9-5f5b-e9475616a071/artifacts/bcae0416621b3db43d8cba1e4454a792c7af9e4b7287e51056efc5a215d95839.zip 2024-05-10T17:37:01.6635917Z Starting download of artifact to: /home/runner/work/company/repo/dist 2024-05-10T17:37:01.7296399Z (node:1970) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 2024-05-10T17:37:01.7299068Z (Use node --trace-deprecation ... to show where the warning was created) 2024-05-10T17:37:01.8496367Z Artifact download completed successfully. 2024-05-10T17:37:01.8497560Z Total of 1 artifact(s) downloaded 2024-05-10T17:37:01.8498991Z Download artifact has finished successfully 2024-05-10T17:37:01.8901699Z ##[group]Run actions/download-artifact@v4 2024-05-10T17:37:01.8902255Z with: 2024-05-10T17:37:01.8902530Z name: dmca-base 2024-05-10T17:37:01.8902882Z path: /tmp 2024-05-10T17:37:01.8903280Z merge-multiple: false 2024-05-10T17:37:01.8903627Z repository: company/repo 2024-05-10T17:37:01.8904063Z run-id: 9035920765 2024-05-10T17:37:01.8904470Z env: 2024-05-10T17:37:01.8904745Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:37:01.8905150Z ##[endgroup] 2024-05-10T17:37:02.0932547Z Downloading single artifact 2024-05-10T17:37:02.2005477Z Preparing to download the following artifacts: 2024-05-10T17:37:02.2007274Z - dmca-base (ID: 1491982723, Size: 50658508) 2024-05-10T17:37:02.2425636Z Redirecting to blob download url: https://productionresultssa5.blob.core.windows.net/actions-results/722bd63f-d7aa-4bff-83a9-42ec0f4dbabb/workflow-job-run-64c5fd72-f579-5ec7-092a-db1606b57745/artifacts/3c0bbceb017f9dea8e123a05e122764ab89b6f429901182381d8b3f51fdb03ad.zip 2024-05-10T17:37:02.2429877Z Starting download of artifact to: /tmp 2024-05-10T17:37:02.3536102Z (node:1986) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 2024-05-10T17:37:02.3538469Z (Use node --trace-deprecation ... to show where the warning was created) 2024-05-10T17:37:03.2549397Z Artifact download completed successfully. 2024-05-10T17:37:03.2550724Z Total of 1 artifact(s) downloaded 2024-05-10T17:37:03.2559239Z Download artifact has finished successfully 2024-05-10T17:37:03.2909443Z ##[group]Run docker load --input /tmp/dmca-base.tar 2024-05-10T17:37:03.2910121Z [36;1mdocker load --input /tmp/dmca-base.tar[0m 2024-05-10T17:37:03.3157373Z shell: /usr/bin/bash -e {0} 2024-05-10T17:37:03.3157816Z env: 2024-05-10T17:37:03.3158159Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:37:03.3158606Z ##[endgroup] 2024-05-10T17:37:06.2904114Z Loaded image: dmca-base:latest 2024-05-10T17:37:06.3067693Z ##[group]Run docker/login-action@v3 2024-05-10T17:37:06.3068191Z with: 2024-05-10T17:37:06.3068498Z registry: ghcr.io 2024-05-10T17:37:06.3068867Z username: anthonyma94 2024-05-10T17:37:06.3069580Z password: *** 2024-05-10T17:37:06.3069938Z ecr: auto 2024-05-10T17:37:06.3070267Z logout: true 2024-05-10T17:37:06.3070625Z env: 2024-05-10T17:37:06.3070936Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:37:06.3071333Z ##[endgroup] 2024-05-10T17:37:06.4257912Z Logging into ghcr.io... 2024-05-10T17:37:06.5807217Z Login Succeeded! 2024-05-10T17:37:06.5970644Z ##[group]Run docker/build-push-action@v5 2024-05-10T17:37:06.5971082Z with: 2024-05-10T17:37:06.5971416Z context: dist/apps/api 2024-05-10T17:37:06.5972032Z build-contexts: dmca-base=docker-image://dmca-base:latest

2024-05-10T17:37:06.5972753Z tags: ghcr.io/domain/api:latest ghcr.io/domain/api:latest

2024-05-10T17:37:06.5973278Z build-args: TAG=

2024-05-10T17:37:06.5973681Z push: false 2024-05-10T17:37:06.5974018Z load: false 2024-05-10T17:37:06.5974292Z no-cache: false 2024-05-10T17:37:06.5974668Z pull: false 2024-05-10T17:37:06.5975177Z github-token: *** 2024-05-10T17:37:06.5975481Z env: 2024-05-10T17:37:06.5975860Z BASE_DOCKER_IMAGE: dmca-base 2024-05-10T17:37:06.5976255Z ##[endgroup] 2024-05-10T17:37:06.7618907Z ##[group]GitHub Actions runtime token ACs 2024-05-10T17:37:06.7630125Z refs/heads/nx-affected-build: read/write 2024-05-10T17:37:06.7631504Z refs/heads/develop: read 2024-05-10T17:37:06.7633391Z ##[endgroup] 2024-05-10T17:37:06.7634605Z ##[group]Docker info 2024-05-10T17:37:06.7732472Z [command]/usr/bin/docker version 2024-05-10T17:37:06.8022557Z Client: Docker Engine - Community 2024-05-10T17:37:06.8023347Z Version: 24.0.9 2024-05-10T17:37:06.8023903Z API version: 1.43 2024-05-10T17:37:06.8024649Z Go version: go1.20.13 2024-05-10T17:37:06.8025275Z Git commit: 2936816 2024-05-10T17:37:06.8025850Z Built: Thu Feb 1 00:48:39 2024 2024-05-10T17:37:06.8026647Z OS/Arch: linux/amd64 2024-05-10T17:37:06.8027272Z Context: default 2024-05-10T17:37:06.8027607Z 2024-05-10T17:37:06.8027908Z Server: Docker Engine - Community 2024-05-10T17:37:06.8028552Z Engine: 2024-05-10T17:37:06.8028887Z Version: 24.0.9 2024-05-10T17:37:06.8029275Z API version: 1.43 (minimum version 1.12) 2024-05-10T17:37:06.8029790Z Go version: go1.20.13 2024-05-10T17:37:06.8030178Z Git commit: fca702d 2024-05-10T17:37:06.8030556Z Built: Thu Feb 1 00:48:39 2024 2024-05-10T17:37:06.8031071Z OS/Arch: linux/amd64 2024-05-10T17:37:06.8031486Z Experimental: false 2024-05-10T17:37:06.8032055Z containerd: 2024-05-10T17:37:06.8032782Z Version: 1.6.31 2024-05-10T17:37:06.8033576Z GitCommit: e377cd56a71523140ca6ae87e30244719194a521 2024-05-10T17:37:06.8034375Z runc: 2024-05-10T17:37:06.8035109Z Version: 1.1.12 2024-05-10T17:37:06.8035878Z GitCommit: v1.1.12-0-g51d5e94 2024-05-10T17:37:06.8036631Z docker-init: 2024-05-10T17:37:06.8037406Z Version: 0.19.0 2024-05-10T17:37:06.8038065Z GitCommit: de40ad0 2024-05-10T17:37:06.8097828Z [command]/usr/bin/docker info 2024-05-10T17:37:06.8947147Z Client: Docker Engine - Community 2024-05-10T17:37:06.9033707Z Version: 24.0.9 2024-05-10T17:37:06.9034840Z Context: default 2024-05-10T17:37:06.9035973Z Debug Mode: false 2024-05-10T17:37:06.9036914Z Plugins: 2024-05-10T17:37:06.9038042Z buildx: Docker Buildx (Docker Inc.) 2024-05-10T17:37:06.9039059Z Version: v0.14.0 2024-05-10T17:37:06.9040444Z Path: /usr/libexec/docker/cli-plugins/docker-buildx 2024-05-10T17:37:06.9041815Z compose: Docker Compose (Docker Inc.) 2024-05-10T17:37:06.9042847Z Version: v2.23.3 2024-05-10T17:37:06.9044192Z Path: /usr/libexec/docker/cli-plugins/docker-compose 2024-05-10T17:37:06.9045100Z 2024-05-10T17:37:06.9045612Z Server: 2024-05-10T17:37:06.9046477Z Containers: 1 2024-05-10T17:37:06.9047511Z Running: 1 2024-05-10T17:37:06.9144308Z Paused: 0 2024-05-10T17:37:06.9144980Z Stopped: 0 2024-05-10T17:37:06.9145540Z Images: 16 2024-05-10T17:37:06.9146122Z Server Version: 24.0.9 2024-05-10T17:37:06.9146871Z Storage Driver: overlay2 2024-05-10T17:37:06.9147514Z Backing Filesystem: extfs 2024-05-10T17:37:06.9148159Z Supports d_type: true 2024-05-10T17:37:06.9148874Z Using metacopy: false 2024-05-10T17:37:06.9149503Z Native Overlay Diff: false 2024-05-10T17:37:06.9150133Z userxattr: false 2024-05-10T17:37:06.9150891Z Logging Driver: json-file 2024-05-10T17:37:06.9152220Z Cgroup Driver: cgroupfs 2024-05-10T17:37:06.9152890Z Cgroup Version: 2 2024-05-10T17:37:06.9153563Z Plugins: 2024-05-10T17:37:06.9154122Z Volume: local 2024-05-10T17:37:06.9154798Z Network: bridge host ipvlan macvlan null overlay 2024-05-10T17:37:06.9156295Z Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog 2024-05-10T17:37:06.9157475Z Swarm: inactive 2024-05-10T17:37:06.9158096Z Runtimes: io.containerd.runc.v2 runc 2024-05-10T17:37:06.9158937Z Default Runtime: runc 2024-05-10T17:37:06.9159655Z Init Binary: docker-init 2024-05-10T17:37:06.9160443Z containerd version: e377cd56a71523140ca6ae87e30244719194a521 2024-05-10T17:37:06.9161545Z runc version: v1.1.12-0-g51d5e94 2024-05-10T17:37:06.9162174Z init version: de40ad0 2024-05-10T17:37:06.9162719Z Security Options: 2024-05-10T17:37:06.9163309Z apparmor 2024-05-10T17:37:06.9163769Z seccomp 2024-05-10T17:37:06.9164522Z Profile: builtin 2024-05-10T17:37:06.9165092Z cgroupns 2024-05-10T17:37:06.9165684Z Kernel Version: 6.5.0-1018-azure 2024-05-10T17:37:06.9166369Z Operating System: Ubuntu 22.04.4 LTS 2024-05-10T17:37:06.9167063Z OSType: linux 2024-05-10T17:37:06.9167562Z Architecture: x86_64 2024-05-10T17:37:06.9168106Z CPUs: 2 2024-05-10T17:37:06.9168662Z Total Memory: 7.744GiB 2024-05-10T17:37:06.9169267Z Name: fv-az711-73 2024-05-10T17:37:06.9169956Z ID: 584d62f5-11d9-4074-87e4-acacf60905a6 2024-05-10T17:37:06.9170775Z Docker Root Dir: /var/lib/docker 2024-05-10T17:37:06.9171457Z Debug Mode: false 2024-05-10T17:37:06.9172029Z Username: githubactions 2024-05-10T17:37:06.9172689Z Experimental: false 2024-05-10T17:37:06.9173243Z Insecure Registries: 2024-05-10T17:37:06.9173722Z 127.0.0.0/8 2024-05-10T17:37:06.9174339Z Live Restore Enabled: false 2024-05-10T17:37:06.9174757Z 2024-05-10T17:37:06.9175425Z ##[endgroup] 2024-05-10T17:37:06.9176379Z ##[group]Proxy configuration 2024-05-10T17:37:06.9177022Z No proxy configuration found 2024-05-10T17:37:06.9178025Z ##[endgroup] 2024-05-10T17:37:06.9835594Z ##[group]Buildx version 2024-05-10T17:37:06.9863224Z [command]/usr/bin/docker buildx version 2024-05-10T17:37:07.0399202Z github.com/docker/buildx v0.14.0 171fcbeb69d67c90ba7f44f41a9e418f6a6ec1da 2024-05-10T17:37:07.0434067Z ##[endgroup] 2024-05-10T17:37:07.2490000Z [command]/usr/bin/docker buildx build --build-arg TAG= --build-context dmca-base=docker-image://dmca-base:latest --iidfile /home/runner/work/_temp/docker-actions-toolkit-rC6Soh/iidfile --provenance mode=min,inline-only=true,builder-id=https://github.com/company/repo/actions/runs/9035920765 --tag ghcr.io/domain/api:latest --tag ghcr.io/domain/api:latest --metadata-file /home/runner/work/_temp/docker-actions-toolkit-rC6Soh/metadata-file dist/apps/api 2024-05-10T17:37:07.5409102Z #0 building with "builder-846d3793-1755-481e-9613-85bdeb481d65" instance using docker-container driver 2024-05-10T17:37:07.5413549Z 2024-05-10T17:37:07.5415906Z #1 [internal] load build definition from Dockerfile 2024-05-10T17:37:07.5417012Z #1 transferring dockerfile: 315B done 2024-05-10T17:37:07.5417925Z #1 DONE 0.0s 2024-05-10T17:37:07.5420060Z 2024-05-10T17:37:07.5420804Z #2 [auth] library/dmca-base:pull token for registry-1.docker.io 2024-05-10T17:37:07.5421923Z #2 DONE 0.0s 2024-05-10T17:37:07.5476836Z 2024-05-10T17:37:07.5479016Z #3 [context dmca-base] load metadata for dmca-base:latest 2024-05-10T17:37:07.5480517Z #3 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed 2024-05-10T17:37:07.5577353Z ------ 2024-05-10T17:37:07.5578375Z > [context dmca-base] load metadata for dmca-base:latest: 2024-05-10T17:37:07.5579368Z ------ 2024-05-10T17:37:07.5581861Z WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load 2024-05-10T17:37:07.5632518Z Dockerfile:1 2024-05-10T17:37:07.5651384Z -------------------- 2024-05-10T17:37:07.5652203Z 1 | >>> FROM dmca-base:latest 2024-05-10T17:37:07.5652935Z 2 | ARG TAG 2024-05-10T17:37:07.5653540Z 3 | ARG INIT_SENTRY 2024-05-10T17:37:07.5654197Z -------------------- 2024-05-10T17:37:07.5656496Z ERROR: failed to solve: failed to resolve source metadata for docker.io/library/dmca-base:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed 2024-05-10T17:37:07.5718594Z ##[error]buildx failed with: ERROR: failed to solve: failed to resolve source metadata for docker.io/library/dmca-base:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed 2024-05-10T17:37:07.5952794Z Post job cleanup. 2024-05-10T17:37:07.7541993Z ##[group]Removing temp folder /home/runner/work/_temp/docker-actions-toolkit-rC6Soh 2024-05-10T17:37:07.7556268Z ##[endgroup] 2024-05-10T17:37:07.7744472Z Post job cleanup. 2024-05-10T17:37:07.9183109Z [command]/usr/bin/docker logout ghcr.io 2024-05-10T17:37:07.9462323Z Removing login credentials for ghcr.io 2024-05-10T17:37:07.9689613Z Post job cleanup. 2024-05-10T17:37:08.1283811Z ##[group]Removing builder 2024-05-10T17:37:08.2729981Z [command]/usr/bin/docker buildx rm builder-846d3793-1755-481e-9613-85bdeb481d65 2024-05-10T17:37:08.4619567Z builder-846d3793-1755-481e-9613-85bdeb481d65 removed 2024-05-10T17:37:08.4674946Z ##[endgroup] 2024-05-10T17:37:08.4676451Z ##[group]Cleaning up certificates 2024-05-10T17:37:08.4678900Z ##[endgroup] 2024-05-10T17:37:08.4679757Z ##[group]Post cache 2024-05-10T17:37:08.4680257Z State not set 2024-05-10T17:37:08.4681182Z ##[endgroup] 2024-05-10T17:37:08.4966488Z Cleaning up orphan processes

BuildKit logs

No response

Additional info

No response

anthonyma94 avatar May 10 '24 17:05 anthonyma94