gpt4 book ai didi

Minimal .gitlab-ci.yml file for a plain HTML website(纯HTML网站的最小.gitlab-ci.yml文件)

转载 作者:bug小助手 更新时间:2023-10-27 19:51:41 26 4
gpt4 key购买 nike



Website content


.
├── index.html
└── images/
├── a.jpg
├── b.jpg
└── c.jpg

I wonder if the following is still valid and reliable. I found it on a blog post written in 2016.

我想知道下面的话是否仍然有效和可靠。我在2016年写的一篇博客文章中找到了这一点。


pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- main

Is the current CI template any better?

当前的配置项模板是否更好?


pages:
stage: deploy
environment: production
script:
- mkdir .public
- cp -r ./* .public
- rm -rf public
- mv .public public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

更多回答

Whether that job is configured "valid" can be checked through Gitlabs own linters. Whether it is reliable or whether the other is "better" depends on what you want to achieve. Anything not working with them?

该作业是否被配置为“有效”可以通过GitLabs自己的链接器进行检查。它是可靠的,还是其他的“更好”,取决于你想要实现什么。有什么和他们不合作的吗?

优秀答案推荐

This worked quite easily for me in (2023)

这对我来说很容易(2023)


pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master

更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com