add action: update build-ubuntu.yaml
Some checks failed
Build NGINX on Ubuntu / ubuntu-22.04, amd64 (push) Failing after 2m18s
Some checks failed
Build NGINX on Ubuntu / ubuntu-22.04, amd64 (push) Failing after 2m18s
This commit is contained in:
parent
dea63ad96d
commit
867cdfc1a6
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user