aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release-nightly.yml
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-06-20 01:37:32 -0400
committerGitHub <noreply@github.com>2023-06-20 01:37:32 -0400
commitfeda5063217b44a0b66e25726e8975795c308a87 (patch)
treef4b954803f599e1d09768940e7dafd16200a95a0 /.github/workflows/release-nightly.yml
parentef6f5f01242421fd9df832f6143ed21693938838 (diff)
downloadgitea-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.yml2
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