diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-06-20 01:37:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 01:37:32 -0400 |
commit | feda5063217b44a0b66e25726e8975795c308a87 (patch) | |
tree | f4b954803f599e1d09768940e7dafd16200a95a0 /.github/workflows/release-nightly.yml | |
parent | ef6f5f01242421fd9df832f6143ed21693938838 (diff) | |
download | gitea-feda5063217b44a0b66e25726e8975795c308a87.tar.gz gitea-feda5063217b44a0b66e25726e8975795c308a87.zip |
Use Actions git context instead of dynamically created buildkit one (#25381)
The [docker/build-push-action@v2
action](https://github.com/docker/build-push-action) by default ignores
the checkout created using the actions/checkout@v2 action. When you pass
a git build context to docker build, it wouldn't include the .git
directory.
By passing `context: .` to the build step then it'll use the Actions git
context which includes the git fetch from the earlier step.
Diffstat (limited to '.github/workflows/release-nightly.yml')
-rw-r--r-- | .github/workflows/release-nightly.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 1868673f17..0e94f5217c 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -78,12 +78,14 @@ jobs: - name: build rootful docker image uses: docker/build-push-action@v4 with: + context: . platforms: linux/amd64,linux/arm64 push: true tags: gitea/gitea:${{ steps.clean_name.outputs.branch }} - name: build rootless docker image uses: docker/build-push-action@v4 with: + context: . platforms: linux/amd64,linux/arm64 push: true file: Dockerfile.rootless |