B
B
bengur22022-04-09 12:38:22
GitLab
bengur2, 2022-04-09 12:38:22

How to define a buildpack for a static site when using Auto DevOps?

A container is assembled on the virtual machine.

public/index.html

<!DOCTYPE html>
<html>
<head>
  <title>hello</title>
</head>
<body>
  hello
</body>
</html>


Dockerfile
FROM nginx:latest

COPY public/. /usr/share/nginx/html/

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]


.gitlab-ci.yml
include:
  - template: Auto-DevOps.gitlab-ci.yml


But the auto-test doesn't work.
6251533bec494890144913.png
6251536cbe371221840876.png

What needs to be done in order for the autotest to run for a static site?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question