Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request paritytech#178 from subspace/cleanup-ci-build
Browse files Browse the repository at this point in the history
Fix `.git` inclusion based on upstream feedback
  • Loading branch information
nazar-pc authored Dec 8, 2021
2 parents 4ec1a67 + 7c6aaad commit 377a451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- farmer

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

- name: Log into registry
uses: docker/login-action@v1
with:
Expand All @@ -40,6 +43,7 @@ jobs:
id: build
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile-${{ matrix.image }}
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile-node
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ COPY Cargo.toml /code/Cargo.toml
# Up until this line all Rust images in this repo should be the same to share the same layers

# Just enough files for `git rev-parse --short HEAD` to work (used in Substrate node build)
# TODO: Restore once https://github.com/docker/build-push-action/issues/513 is resolved
#COPY .git /code/.git
COPY .git /code/.git
# Just an empty directory for Git to recognize it is indeed a Git repository
# TODO: Restore once https://github.com/docker/build-push-action/issues/513 is resolved
#RUN mkdir /code/.git/objects
RUN mkdir /code/.git/objects
COPY crates /code/crates
COPY substrate /code/substrate

Expand Down

0 comments on commit 377a451

Please sign in to comment.