This commit is contained in:
parent
61095ea985
commit
3515722e61
@ -19,14 +19,12 @@ jobs:
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg GITEA_VERSION=release/v1.24 \
|
||||
-t gitea-custom:latest .
|
||||
docker build -t gitea-custom:latest .
|
||||
|
||||
- name: Stop and remove existing container
|
||||
run: |
|
||||
docker stop gitea-custom || true
|
||||
docker rm gitea-custom || true
|
||||
docker rm gitea-custom || true
|
||||
|
||||
- name: Run new container
|
||||
env:
|
||||
@ -43,9 +41,9 @@ jobs:
|
||||
-e GITEA__database__PASSWD=$DB_PASS \
|
||||
-p 3001:3000 \
|
||||
--restart unless-stopped \
|
||||
gitea-custom:latest
|
||||
gitea-custom:latest
|
||||
|
||||
- name: Verify container is running
|
||||
run: |
|
||||
docker ps -a
|
||||
docker logs gitea-custom --tail 50
|
||||
docker logs gitea-custom --tail 50
|
||||
@ -4,7 +4,7 @@ FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
|
||||
ARG GOPROXY
|
||||
ENV GOPROXY=${GOPROXY:-direct}
|
||||
|
||||
ARG GITEA_VERSION
|
||||
# ARG GITEA_VERSION
|
||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||
ENV TAGS="bindata timetzdata $TAGS"
|
||||
ARG CGO_EXTRA_CFLAGS
|
||||
@ -23,9 +23,9 @@ RUN npm --version
|
||||
COPY . ${GOPATH}/src/code.gitea.io/gitea
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
# Checkout version if set
|
||||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make clean-all build
|
||||
# # Checkout version if set
|
||||
# RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
# && make clean-all build
|
||||
|
||||
# Begin env-to-ini build
|
||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
|
||||
@ -4,7 +4,7 @@ FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
|
||||
ARG GOPROXY
|
||||
ENV GOPROXY=${GOPROXY:-direct}
|
||||
|
||||
ARG GITEA_VERSION
|
||||
# ARG GITEA_VERSION
|
||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||
ENV TAGS="bindata timetzdata $TAGS"
|
||||
ARG CGO_EXTRA_CFLAGS
|
||||
@ -21,9 +21,9 @@ RUN apk --no-cache add \
|
||||
COPY . ${GOPATH}/src/code.gitea.io/gitea
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
# Checkout version if set
|
||||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make clean-all build
|
||||
# # Checkout version if set
|
||||
# RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
# && make clean-all build
|
||||
|
||||
# Begin env-to-ini build
|
||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
|
||||
Loading…
Reference in New Issue
Block a user