File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,14 @@ jobs:
78
78
- name : build rootful docker image
79
79
uses : docker/build-push-action@v4
80
80
with :
81
+ context : .
81
82
platforms : linux/amd64,linux/arm64
82
83
push : true
83
84
tags : gitea/gitea:${{ steps.clean_name.outputs.branch }}
84
85
- name : build rootless docker image
85
86
uses : docker/build-push-action@v4
86
87
with :
88
+ context : .
87
89
platforms : linux/amd64,linux/arm64
88
90
push : true
89
91
file : Dockerfile.rootless
Original file line number Diff line number Diff line change 79
79
STORED_VERSION_FILE := VERSION
80
80
HUGO_VERSION ?= 0.111.3
81
81
82
+ GITHUB_REF_TYPE ?= branch
83
+ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
84
+
82
85
ifneq ($(GITHUB_REF_TYPE ) ,branch)
83
86
VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
84
87
GITEA_VERSION ?= $(GITHUB_REF_NAME)
@@ -1011,9 +1014,5 @@ docker:
1011
1014
docker build --disable-content-trust=false -t $(DOCKER_REF ) .
1012
1015
# support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" .
1013
1016
1014
- .PHONY : docker-build
1015
- docker-build :
1016
- docker run -ti --rm -v " $( CURDIR) :/srv/app/src/code.gitea.io/gitea" -w /srv/app/src/code.gitea.io/gitea -e TAGS=" bindata $( TAGS) " LDFLAGS=" $( LDFLAGS) " CGO_EXTRA_CFLAGS=" $( CGO_EXTRA_CFLAGS) " webhippie/golang:edge make clean build
1017
-
1018
1017
# This endif closes the if at the top of the file
1019
1018
endif
You can’t perform that action at this time.
0 commit comments