add action: update build-ubuntu.yaml
Some checks failed
Build NGINX on Ubuntu / ubuntu-22.04, amd64 (push) Failing after 2m18s

This commit is contained in:
huangzhiqiang 2025-06-07 14:58:54 +08:00
parent dea63ad96d
commit 867cdfc1a6

View File

@ -17,8 +17,6 @@ jobs:
build-nginx: build-nginx:
name: ubuntu-22.04, amd64 name: ubuntu-22.04, amd64
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: check-if-allowed
if: needs.check-if-allowed.outputs.allowed == 'true'
steps: steps:
- name: 检出代码 - name: 检出代码
@ -155,7 +153,8 @@ jobs:
libxml2 \ libxml2 \
libxslt1.1 \ libxslt1.1 \
libgd3 \ libgd3 \
ca-certificates && \ ca-certificates \
curl && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@ -163,7 +162,7 @@ jobs:
RUN groupadd -r nginx && useradd -r -g nginx nginx RUN groupadd -r nginx && useradd -r -g nginx nginx
# 复制编译好的 nginx # 复制编译好的 nginx
COPY --from=builder /usr/local/nginx /usr/local/nginx COPY /usr/local/nginx /usr/local/nginx
# 创建必要的目录 # 创建必要的目录
RUN mkdir -p /var/log/nginx /var/cache/nginx && \ RUN mkdir -p /var/log/nginx /var/cache/nginx && \
@ -204,3 +203,5 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
platforms: linux/amd64 platforms: linux/amd64
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}