Commit d92eb737 by shah

init

parent f8823495
Pipeline #13409 passed with stage
variables:
IMG_NAME: "htmlasset"
REGISTRY_USER: "skb"
REGISTRY_PASSWORD: "Ctsb@2018"
REGISTRY_URL: "repo.cybersolution.com.my:9005"
cache:
key: $CI_COMMIT_REF_SLUG
docker-build:
stage: deploy
image: docker:20.10
services:
- docker:20.10-dind
before_script:
# - 'VERSION=$(cat VERSION) && echo "version: $VERSION"'
# - 'TAG="$IMG_NAME:$VERSION" && echo "tag: $TAG"'
- 'TAG="$IMG_NAME:latest" && echo "tag: $TAG"'
- 'PUSH_TAG="$REGISTRY_URL/$TAG" && echo "pushtag: $PUSH_TAG"'
script:
- docker build --rm -t $TAG .
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD $REGISTRY_URL
- docker tag $TAG $PUSH_TAG
- docker push $PUSH_TAG
- docker image rm $PUSH_TAG $TAG
only:
- master
FROM nginx:1.25.4-alpine
COPY ./commercial_1 /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
\ No newline at end of file
server {
listen 80;
sendfile on;
default_type application/octet-stream;
gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
root /usr/share/nginx/html;
location / {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment