From 867cdfc1a639c371f93b00ce290d2cad4c5b178f Mon Sep 17 00:00:00 2001 From: huangzhiqiang Date: Sat, 7 Jun 2025 14:58:54 +0800 Subject: [PATCH] add action: update build-ubuntu.yaml --- .gitea/workflows/build-ubuntu.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-ubuntu.yaml b/.gitea/workflows/build-ubuntu.yaml index 1e61ba4..43ae843 100644 --- a/.gitea/workflows/build-ubuntu.yaml +++ b/.gitea/workflows/build-ubuntu.yaml @@ -17,8 +17,6 @@ jobs: build-nginx: name: ubuntu-22.04, amd64 runs-on: ubuntu-22.04 - needs: check-if-allowed - if: needs.check-if-allowed.outputs.allowed == 'true' steps: - name: 检出代码 @@ -155,7 +153,8 @@ jobs: libxml2 \ libxslt1.1 \ libgd3 \ - ca-certificates && \ + ca-certificates \ + curl && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* @@ -163,7 +162,7 @@ jobs: RUN groupadd -r nginx && useradd -r -g 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 && \ @@ -204,3 +203,5 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max platforms: linux/amd64 + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} \ No newline at end of file