Orphaned commits fail to clone when using Git context
Troubleshooting
Before submitting a bug report please read the Troubleshooting doc.
Behaviour
Steps to reproduce this issue
- Configure a workflow that does not use
context: . - Release a tag with an orphaned commit (or any other orphaned commit)
Expected behaviour
The build should checkout the commit and complete the work.
Actual behaviour
fatal: reference is not a tree: a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7
Configuration
- Repository URL (if public): N/A
- Build URL (if public): N/A
name: ci
on:
tags:
- v*
permissions:
contents: write
packages: write
jobs:
image:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- my-image
include:
- image: my-image
dockerfile: Dockerfile
steps:
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{ matrix.dockerfile }}
tags: org/${{ matrix.image }}:dev
outputs: type=docker,dest=/tmp/${{ matrix.image }}.tar
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.image }}
path: /tmp/${{ matrix.image }}.tar
if-no-files-found: error
Logs
In the details.
Details
2022-06-01T15:15:51.3988953Z Requested labels: ubuntu-latest
2022-06-01T15:15:51.3989002Z Job defined at: org/repo/.github/workflows/ci.yml@refs/tags/v0.3.1
2022-06-01T15:15:51.3989051Z Waiting for a runner to pick up this job...
2022-06-01T15:15:53.3172197Z Job is waiting for a hosted runner to come online.
2022-06-01T15:15:57.0167683Z Job is about to start running on the hosted runner: GitHub Actions 3 (hosted)
2022-06-01T15:16:01.1647554Z Current runner version: '2.291.1'
2022-06-01T15:16:01.1677178Z ##[group]Operating System
2022-06-01T15:16:01.1677835Z Ubuntu
2022-06-01T15:16:01.1678083Z 20.04.4
2022-06-01T15:16:01.1678382Z LTS
2022-06-01T15:16:01.1678729Z ##[endgroup]
2022-06-01T15:16:01.1679021Z ##[group]Virtual Environment
2022-06-01T15:16:01.1679431Z Environment: ubuntu-20.04
2022-06-01T15:16:01.1679785Z Version: 20220515.1
2022-06-01T15:16:01.1680267Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220515.1/images/linux/Ubuntu2004-Readme.md
2022-06-01T15:16:01.1680948Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220515.1
2022-06-01T15:16:01.1681446Z ##[endgroup]
2022-06-01T15:16:01.1681847Z ##[group]Virtual Environment Provisioner
2022-06-01T15:16:01.1682186Z 1.0.0.0-main-20220516-1
2022-06-01T15:16:01.1682504Z ##[endgroup]
2022-06-01T15:16:01.1683143Z ##[group]GITHUB_TOKEN Permissions
2022-06-01T15:16:01.1684241Z Contents: write
2022-06-01T15:16:01.1684587Z Metadata: read
2022-06-01T15:16:01.1684924Z Packages: write
2022-06-01T15:16:01.1685258Z ##[endgroup]
2022-06-01T15:16:01.1689111Z Secret source: Actions
2022-06-01T15:16:01.1689624Z Prepare workflow directory
2022-06-01T15:16:01.2542111Z Prepare all required actions
2022-06-01T15:16:01.2728697Z Getting action download info
2022-06-01T15:16:01.5078399Z Download action repository 'docker/setup-buildx-action@v2' (SHA:dc7b9719a96d48369863986a06765841d7ea23f6)
2022-06-01T15:16:01.8523055Z Download action repository 'docker/build-push-action@v3' (SHA:e551b19e49efd4e98792db7592c17c09b89db8d8)
2022-06-01T15:16:02.0531743Z Download action repository 'actions/upload-artifact@v3' (SHA:3cea5372237819ed00197afe530f5a7ea3e805c8)
2022-06-01T15:16:02.7495556Z ##[group]Run docker/setup-buildx-action@v2
2022-06-01T15:16:02.7495887Z with:
2022-06-01T15:16:02.7496099Z driver: docker-container
2022-06-01T15:16:02.7496502Z buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
2022-06-01T15:16:02.7496889Z install: false
2022-06-01T15:16:02.7497075Z use: true
2022-06-01T15:16:02.7497275Z ##[endgroup]
2022-06-01T15:16:03.4340312Z ##[group]Docker info
2022-06-01T15:16:03.4360286Z [command]/usr/bin/docker version
2022-06-01T15:16:03.4774603Z Client:
2022-06-01T15:16:03.4775229Z Version: 20.10.15+azure-1
2022-06-01T15:16:03.4775504Z API version: 1.41
2022-06-01T15:16:03.4775756Z Go version: go1.16.15
2022-06-01T15:16:03.4776048Z Git commit: fd82621d35d2d9662854c8351976d5cc1e4186ce
2022-06-01T15:16:03.4776318Z Built: Thu Apr 21 14:44:35 2022
2022-06-01T15:16:03.4776560Z OS/Arch: linux/amd64
2022-06-01T15:16:03.4776853Z Context: default
2022-06-01T15:16:03.4777087Z Experimental: true
2022-06-01T15:16:03.4777232Z
2022-06-01T15:16:03.4777306Z Server:
2022-06-01T15:16:03.4777501Z Engine:
2022-06-01T15:16:03.4777733Z Version: 20.10.15+azure-2
2022-06-01T15:16:03.4778000Z API version: 1.41 (minimum version 1.12)
2022-06-01T15:16:03.4778261Z Go version: go1.16.15
2022-06-01T15:16:03.4778533Z Git commit: 4433bf67ba0a3f686ffffce04d0709135e0b37eb
2022-06-01T15:16:03.4778809Z Built: Wed May 4 18:25:18 2022
2022-06-01T15:16:03.4779043Z OS/Arch: linux/amd64
2022-06-01T15:16:03.4779255Z Experimental: false
2022-06-01T15:16:03.4780435Z containerd:
2022-06-01T15:16:03.4780706Z Version: 1.5.11+azure-1
2022-06-01T15:16:03.4783323Z GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
2022-06-01T15:16:03.4785211Z runc:
2022-06-01T15:16:03.4785609Z Version: 1.0.3
2022-06-01T15:16:03.4786050Z GitCommit: f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
2022-06-01T15:16:03.4786624Z docker-init:
2022-06-01T15:16:03.4787071Z Version: 0.19.0
2022-06-01T15:16:03.4787530Z GitCommit:
2022-06-01T15:16:03.4828782Z [command]/usr/bin/docker info
2022-06-01T15:16:03.5676274Z Client:
2022-06-01T15:16:03.5683847Z Context: default
2022-06-01T15:16:03.5684773Z Debug Mode: false
2022-06-01T15:16:03.5686503Z Plugins:
2022-06-01T15:16:03.5687282Z buildx: Docker Buildx (Docker Inc., 0.8.2+azure-1)
2022-06-01T15:16:03.5687829Z compose: Docker Compose (Docker Inc., 2.4.1+azure-1)
2022-06-01T15:16:03.5688235Z
2022-06-01T15:16:03.5747218Z Server:
2022-06-01T15:16:03.5747462Z Containers: 0
2022-06-01T15:16:03.5747672Z Running: 0
2022-06-01T15:16:03.5747873Z Paused: 0
2022-06-01T15:16:03.5748054Z Stopped: 0
2022-06-01T15:16:03.5748250Z Images: 19
2022-06-01T15:16:03.5748658Z Server Version: 20.10.15+azure-2
2022-06-01T15:16:03.5748883Z Storage Driver: overlay2
2022-06-01T15:16:03.5749118Z Backing Filesystem: extfs
2022-06-01T15:16:03.5749381Z Supports d_type: true
2022-06-01T15:16:03.5749604Z Native Overlay Diff: false
2022-06-01T15:16:03.5749831Z userxattr: false
2022-06-01T15:16:03.5750107Z Logging Driver: json-file
2022-06-01T15:16:03.5750326Z Cgroup Driver: cgroupfs
2022-06-01T15:16:03.5750547Z Cgroup Version: 1
2022-06-01T15:16:03.5750754Z Plugins:
2022-06-01T15:16:03.5750934Z Volume: local
2022-06-01T15:16:03.5751186Z Network: bridge host ipvlan macvlan null overlay
2022-06-01T15:16:03.5751643Z Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2022-06-01T15:16:03.5751936Z Swarm: inactive
2022-06-01T15:16:03.5752294Z Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2022-06-01T15:16:03.5752605Z Default Runtime: runc
2022-06-01T15:16:03.5752887Z Init Binary: docker-init
2022-06-01T15:16:03.5753161Z containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
2022-06-01T15:16:03.5753490Z runc version: f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
2022-06-01T15:16:03.5754014Z init version:
2022-06-01T15:16:03.5754224Z Security Options:
2022-06-01T15:16:03.5754685Z apparmor
2022-06-01T15:16:03.5754875Z seccomp
2022-06-01T15:16:03.5755056Z Profile: default
2022-06-01T15:16:03.5755352Z Kernel Version: 5.13.0-1023-azure
2022-06-01T15:16:03.5755611Z Operating System: Ubuntu 20.04.4 LTS
2022-06-01T15:16:03.5755832Z OSType: linux
2022-06-01T15:16:03.5756044Z Architecture: x86_64
2022-06-01T15:16:03.5756257Z CPUs: 2
2022-06-01T15:16:03.5756442Z Total Memory: 6.784GiB
2022-06-01T15:16:03.5756700Z Name: fv-az196-366
2022-06-01T15:16:03.5756972Z ID: HBH2:4GTI:TVZO:RQE3:2FY4:V7R3:4FOX:5VLT:UXT2:VE6W:FUZ6:UTYB
2022-06-01T15:16:03.5757242Z Docker Root Dir: /var/lib/docker
2022-06-01T15:16:03.5757470Z Debug Mode: false
2022-06-01T15:16:03.5757687Z Username: githubactions
2022-06-01T15:16:03.5757964Z Registry: https://index.docker.io/v1/
2022-06-01T15:16:03.5758205Z Labels:
2022-06-01T15:16:03.5758405Z Experimental: false
2022-06-01T15:16:03.5758617Z Insecure Registries:
2022-06-01T15:16:03.5758821Z 127.0.0.0/8
2022-06-01T15:16:03.5759033Z Live Restore Enabled: false
2022-06-01T15:16:03.5759184Z
2022-06-01T15:16:03.5759998Z ##[endgroup]
2022-06-01T15:16:03.7329223Z ##[group]Buildx version
2022-06-01T15:16:03.7354444Z [command]/usr/bin/docker buildx version
2022-06-01T15:16:03.8119879Z github.com/docker/buildx 0.8.2+azure-1 6224def4dd2c3d347eee19db595348c50d7cb491
2022-06-01T15:16:03.8152865Z ##[endgroup]
2022-06-01T15:16:03.8164311Z ##[group]Creating a new builder instance
2022-06-01T15:16:03.8207220Z [command]/usr/bin/docker buildx create --name builder-caf8d982-7e34-483c-b22b-37fe494ebd51 --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use
2022-06-01T15:16:03.9172281Z builder-caf8d982-7e34-483c-b22b-37fe494ebd51
2022-06-01T15:16:03.9202290Z ##[endgroup]
2022-06-01T15:16:03.9202938Z ##[group]Booting builder
2022-06-01T15:16:03.9226343Z [command]/usr/bin/docker buildx inspect --bootstrap --builder builder-caf8d982-7e34-483c-b22b-37fe494ebd51
2022-06-01T15:16:04.0425922Z #1 [internal] booting buildkit
2022-06-01T15:16:04.1937960Z #1 pulling image moby/buildkit:buildx-stable-1
2022-06-01T15:16:04.3453557Z #1 pulling image moby/buildkit:buildx-stable-1 0.2s done
2022-06-01T15:16:04.3454833Z #1 creating container buildx_buildkit_builder-caf8d982-7e34-483c-b22b-37fe494ebd510
2022-06-01T15:16:05.0598192Z #1 creating container buildx_buildkit_builder-caf8d982-7e34-483c-b22b-37fe494ebd510 0.8s done
2022-06-01T15:16:05.0616526Z #1 DONE 1.0s
2022-06-01T15:16:05.2224821Z Name: builder-caf8d982-7e34-483c-b22b-37fe494ebd51
2022-06-01T15:16:05.2225379Z Driver: docker-container
2022-06-01T15:16:05.2225536Z
2022-06-01T15:16:05.2225613Z Nodes:
2022-06-01T15:16:05.2225966Z Name: builder-caf8d982-7e34-483c-b22b-37fe494ebd510
2022-06-01T15:16:05.2226269Z Endpoint: unix:///var/run/docker.sock
2022-06-01T15:16:05.2226510Z Status: running
2022-06-01T15:16:05.2227014Z Flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
2022-06-01T15:16:05.2227447Z Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/amd64/v4, linux/386
2022-06-01T15:16:05.2228518Z ##[endgroup]
2022-06-01T15:16:05.2228914Z ##[group]Inspect builder
2022-06-01T15:16:05.4039199Z {
2022-06-01T15:16:05.4040178Z "name": "builder-caf8d982-7e34-483c-b22b-37fe494ebd51",
2022-06-01T15:16:05.4040695Z "driver": "docker-container",
2022-06-01T15:16:05.4041766Z "node_name": "builder-caf8d982-7e34-483c-b22b-37fe494ebd510",
2022-06-01T15:16:05.4042157Z "node_endpoint": "unix:///var/run/docker.sock",
2022-06-01T15:16:05.4042428Z "node_status": "running",
2022-06-01T15:16:05.4043019Z "node_flags": "--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host",
2022-06-01T15:16:05.4044359Z "node_platforms": "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386"
2022-06-01T15:16:05.4044643Z }
2022-06-01T15:16:05.4047087Z ##[endgroup]
2022-06-01T15:16:05.4048082Z ##[group]BuildKit version
2022-06-01T15:16:05.9117747Z moby/buildkit:buildx-stable-1 => buildkitd github.com/moby/buildkit v0.10.3 c8d25d9a103b70dc300a4fd55e7e576472284e31
2022-06-01T15:16:05.9118915Z ##[endgroup]
2022-06-01T15:16:05.9452745Z ##[group]Run docker/build-push-action@v3
2022-06-01T15:16:05.9453023Z with:
2022-06-01T15:16:05.9453228Z cache-from: type=gha
2022-06-01T15:16:05.9453454Z cache-to: type=gha,mode=max
2022-06-01T15:16:05.9453704Z file: compute/core/builder/Dockerfile
2022-06-01T15:16:05.9453962Z tags: org/my-image:dev
2022-06-01T15:16:05.9454225Z outputs: type=docker,dest=/tmp/my-image.tar
2022-06-01T15:16:05.9454475Z load: false
2022-06-01T15:16:05.9454673Z no-cache: false
2022-06-01T15:16:05.9454857Z pull: false
2022-06-01T15:16:05.9455050Z push: false
2022-06-01T15:16:05.9455440Z github-token: ***
2022-06-01T15:16:05.9455633Z ##[endgroup]
2022-06-01T15:16:06.1421755Z ##[group]Docker info
2022-06-01T15:16:06.1438921Z [command]/usr/bin/docker version
2022-06-01T15:16:06.1908062Z Client:
2022-06-01T15:16:06.1916474Z Version: 20.10.15+azure-1
2022-06-01T15:16:06.1920232Z API version: 1.41
2022-06-01T15:16:06.1924423Z Go version: go1.16.15
2022-06-01T15:16:06.1928332Z Git commit: fd82621d35d2d9662854c8351976d5cc1e4186ce
2022-06-01T15:16:06.1932626Z Built: Thu Apr 21 14:44:35 2022
2022-06-01T15:16:06.1941107Z OS/Arch: linux/amd64
2022-06-01T15:16:06.1941664Z Context: default
2022-06-01T15:16:06.1943315Z Experimental: true
2022-06-01T15:16:06.1943734Z
2022-06-01T15:16:06.1943959Z Server:
2022-06-01T15:16:06.1946253Z Engine:
2022-06-01T15:16:06.1949588Z Version: 20.10.15+azure-2
2022-06-01T15:16:06.1951454Z API version: 1.41 (minimum version 1.12)
2022-06-01T15:16:06.1953126Z Go version: go1.16.15
2022-06-01T15:16:06.1955553Z Git commit: 4433bf67ba0a3f686ffffce04d0709135e0b37eb
2022-06-01T15:16:06.1958148Z Built: Wed May 4 18:25:18 2022
2022-06-01T15:16:06.1958646Z OS/Arch: linux/amd64
2022-06-01T15:16:06.1959019Z Experimental: false
2022-06-01T15:16:06.1959344Z containerd:
2022-06-01T15:16:06.2017395Z Version: 1.5.11+azure-1
2022-06-01T15:16:06.2020398Z GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
2022-06-01T15:16:06.2021035Z runc:
2022-06-01T15:16:06.2021234Z Version: 1.0.3
2022-06-01T15:16:06.2021516Z GitCommit: f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
2022-06-01T15:16:06.2021919Z docker-init:
2022-06-01T15:16:06.2022133Z Version: 0.19.0
2022-06-01T15:16:06.2022344Z GitCommit:
2022-06-01T15:16:06.2022554Z [command]/usr/bin/docker info
2022-06-01T15:16:06.2795731Z Client:
2022-06-01T15:16:06.2796273Z Context: default
2022-06-01T15:16:06.2796672Z Debug Mode: false
2022-06-01T15:16:06.2797099Z Plugins:
2022-06-01T15:16:06.2798201Z buildx: Docker Buildx (Docker Inc., 0.8.2+azure-1)
2022-06-01T15:16:06.2798618Z compose: Docker Compose (Docker Inc., 2.4.1+azure-1)
2022-06-01T15:16:06.2798796Z
2022-06-01T15:16:06.2798869Z Server:
2022-06-01T15:16:06.2799065Z Containers: 1
2022-06-01T15:16:06.2799251Z Running: 1
2022-06-01T15:16:06.2799445Z Paused: 0
2022-06-01T15:16:06.2799658Z Stopped: 0
2022-06-01T15:16:06.2799850Z Images: 19
2022-06-01T15:16:06.2800098Z Server Version: 20.10.15+azure-2
2022-06-01T15:16:06.2800330Z Storage Driver: overlay2
2022-06-01T15:16:06.2800548Z Backing Filesystem: extfs
2022-06-01T15:16:06.2800776Z Supports d_type: true
2022-06-01T15:16:06.2801007Z Native Overlay Diff: false
2022-06-01T15:16:06.2801218Z userxattr: false
2022-06-01T15:16:06.2801484Z Logging Driver: json-file
2022-06-01T15:16:06.2801714Z Cgroup Driver: cgroupfs
2022-06-01T15:16:06.2801918Z Cgroup Version: 1
2022-06-01T15:16:06.2802118Z Plugins:
2022-06-01T15:16:06.2802307Z Volume: local
2022-06-01T15:16:06.2802546Z Network: bridge host ipvlan macvlan null overlay
2022-06-01T15:16:06.2803020Z Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2022-06-01T15:16:06.2803622Z Swarm: inactive
2022-06-01T15:16:06.2803926Z Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2022-06-01T15:16:06.2804607Z Default Runtime: runc
2022-06-01T15:16:06.2804907Z Init Binary: docker-init
2022-06-01T15:16:06.2805199Z containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
2022-06-01T15:16:06.2805515Z runc version: f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
2022-06-01T15:16:06.2805778Z init version:
2022-06-01T15:16:06.2805986Z Security Options:
2022-06-01T15:16:06.2806175Z apparmor
2022-06-01T15:16:06.2806363Z seccomp
2022-06-01T15:16:06.2806594Z Profile: default
2022-06-01T15:16:06.2806885Z Kernel Version: 5.13.0-1023-azure
2022-06-01T15:16:06.2807121Z Operating System: Ubuntu 20.04.4 LTS
2022-06-01T15:16:06.2807351Z OSType: linux
2022-06-01T15:16:06.2807559Z Architecture: x86_64
2022-06-01T15:16:06.2807756Z CPUs: 2
2022-06-01T15:16:06.2807955Z Total Memory: 6.784GiB
2022-06-01T15:16:06.2808212Z Name: fv-az196-366
2022-06-01T15:16:06.2808471Z ID: HBH2:4GTI:TVZO:RQE3:2FY4:V7R3:4FOX:5VLT:UXT2:VE6W:FUZ6:UTYB
2022-06-01T15:16:06.2808749Z Docker Root Dir: /var/lib/docker
2022-06-01T15:16:06.2808974Z Debug Mode: false
2022-06-01T15:16:06.2809178Z Username: githubactions
2022-06-01T15:16:06.2809466Z Registry: https://index.docker.io/v1/
2022-06-01T15:16:06.2809699Z Labels:
2022-06-01T15:16:06.2809885Z Experimental: false
2022-06-01T15:16:06.2810107Z Insecure Registries:
2022-06-01T15:16:06.2810917Z 127.0.0.0/8
2022-06-01T15:16:06.2811119Z Live Restore Enabled: false
2022-06-01T15:16:06.2811265Z
2022-06-01T15:16:06.2830103Z ##[endgroup]
2022-06-01T15:16:06.4484921Z ##[group]Buildx version
2022-06-01T15:16:06.4503417Z [command]/usr/bin/docker buildx version
2022-06-01T15:16:06.5431851Z github.com/docker/buildx 0.8.2+azure-1 6224def4dd2c3d347eee19db595348c50d7cb491
2022-06-01T15:16:06.5463136Z ##[endgroup]
2022-06-01T15:16:06.5586146Z [command]/usr/bin/docker buildx build --cache-from type=gha --cache-to type=gha,mode=max --file compute/core/builder/Dockerfile --iidfile /tmp/docker-build-push-eMHOsE/iidfile --output type=docker,dest=/tmp/my-image.tar --secret id=GIT_AUTH_TOKEN,src=/tmp/docker-build-push-eMHOsE/tmp-2175-FbSOvBHhTnrt --tag org/my-image:dev --metadata-file /tmp/docker-build-push-eMHOsE/metadata-file https://github.com/org/repo.git#a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7
2022-06-01T15:16:06.8749181Z #1 [internal] load git source https://github.com/org/repo.git#a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7
2022-06-01T15:16:06.8750103Z #0 0.130 hint: Using 'master' as the name for the initial branch. This default branch name
2022-06-01T15:16:06.8750537Z #0 0.130 hint: is subject to change. To configure the initial branch name to use in all
2022-06-01T15:16:06.8750957Z #0 0.130 hint: of your new repositories, which will suppress this warning, call:
2022-06-01T15:16:06.8751271Z #0 0.130 hint:
2022-06-01T15:16:06.8751723Z #0 0.130 hint: git config --global init.defaultBranch <name>
2022-06-01T15:16:06.8751998Z #0 0.130 hint:
2022-06-01T15:16:06.8752423Z #0 0.130 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2022-06-01T15:16:06.8752970Z #0 0.130 hint: 'development'. The just-created branch can be renamed via this command:
2022-06-01T15:16:06.8753294Z #0 0.130 hint:
2022-06-01T15:16:06.8753603Z #0 0.130 hint: git branch -m <name>
2022-06-01T15:16:07.0257108Z #1 0.131 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
2022-06-01T15:16:07.0257902Z #1 0.210 fatal: Not a valid object name a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7^{commit}
2022-06-01T15:16:09.1297135Z #1 2.301 From https://github.com/org/repo
2022-06-01T15:16:09.1310110Z #1 2.322 * [new tag] v0.0.2 -> v0.0.2
2022-06-01T15:16:09.1310434Z #1 2.322 * [new tag] v0.0.3 -> v0.0.3
2022-06-01T15:16:09.1310765Z #1 2.322 * [new tag] v0.0.4 -> v0.0.4
2022-06-01T15:16:09.1311093Z #1 2.323 * [new tag] v0.0.5 -> v0.0.5
2022-06-01T15:16:09.1311423Z #1 2.323 * [new tag] v0.1.0 -> v0.1.0
2022-06-01T15:16:09.1311756Z #1 2.323 * [new tag] v0.1.0-rc1 -> v0.1.0-rc1
2022-06-01T15:16:09.1312099Z #1 2.323 * [new tag] v0.1.1 -> v0.1.1
2022-06-01T15:16:09.1312417Z #1 2.384 fatal: reference is not a tree: a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7
2022-06-01T15:16:09.1497103Z #1 ERROR: failed to checkout remote https://github.com/org/repo.git: exit status 128
2022-06-01T15:16:09.1498628Z ------
2022-06-01T15:16:09.1498990Z > [internal] load git source https://github.com/org/repo.git#a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7:
2022-06-01T15:16:09.1501970Z #1 2.322 * [new tag] v0.0.2 -> v0.0.2
2022-06-01T15:16:09.1503179Z #1 2.322 * [new tag] v0.0.3 -> v0.0.3
2022-06-01T15:16:09.1503523Z #1 2.322 * [new tag] v0.0.4 -> v0.0.4
2022-06-01T15:16:09.1504746Z #1 2.323 * [new tag] v0.0.5 -> v0.0.5
2022-06-01T15:16:09.1505653Z #1 2.323 * [new tag] v0.1.0 -> v0.1.0
2022-06-01T15:16:09.1506045Z #1 2.323 * [new tag] v0.1.0-rc1 -> v0.1.0-rc1
2022-06-01T15:16:09.1507977Z #1 2.323 * [new tag] v0.1.1 -> v0.1.1
2022-06-01T15:16:09.1529673Z #1 2.384 fatal: reference is not a tree: a31e01761bbeb8f1d749c6ab62c89ae2ffe1cdb7
2022-06-01T15:16:09.1536694Z ------
2022-06-01T15:16:09.1537432Z error: failed to solve: failed to read dockerfile: failed to checkout remote https://github.com/org/repo.git: exit status 128
2022-06-01T15:16:09.1654188Z ##[error]buildx failed with: error: failed to solve: failed to read dockerfile: failed to checkout remote https://github.com/org/repo.git: exit status 128
2022-06-01T15:16:09.1780175Z Post job cleanup.
2022-06-01T15:16:09.2816145Z ##[group]Removing temp folder /tmp/docker-build-push-eMHOsE
2022-06-01T15:16:09.2858062Z ##[endgroup]
2022-06-01T15:16:09.2868654Z (node:2447) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
2022-06-01T15:16:09.2869736Z (Use `node --trace-deprecation ...` to show where the warning was created)
2022-06-01T15:16:09.2950061Z Post job cleanup.
2022-06-01T15:16:09.3679296Z ##[group]Removing builder
2022-06-01T15:16:09.3724932Z [command]/usr/bin/docker buildx rm builder-caf8d982-7e34-483c-b22b-37fe494ebd51
2022-06-01T15:16:09.6133685Z ##[endgroup]
2022-06-01T15:16:09.6304249Z Cleaning up orphan processes
Looks similar to https://github.com/moby/buildkit/issues/2888
It does! Ours is just fussy about the commit not belonging to a tree / branch.
Didn't realize that this could be caused by the upstream buildkit. Is this an expected behaviour? In our case, should we just be using context: . and this should be closed @crazy-max?
Is this an expected behaviour?
No and it seems to be happening quite recently. Wonder if something has changed with GitHub.
In our case, should we just be using
context: .
Yes it's safe to just switch to the path context and use the actions/checkout in the meantime.
Same thing here: I need to push a branch that contains the commit of the tag before I push the tag, otherwise I get that error.
What's the consequence of using context: .? I use it like this:
- name: Build and push
uses: docker/build-push-action@v3
with:
# Supported platforms
platforms: linux/amd64,linux/arm64/v8
# Do not push for pull requests
push: ${{ github.event_name != 'pull_request' }}
# Tags and labels defined in `meta` step
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
What's the consequence of using
context: .? I use it like this:
You need to set context: . input as well, see https://github.com/docker/build-push-action?tab=readme-ov-file#path-context