Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abbos1711/golang-gitlab-ci-cd

Golang project CI/CD in gitlab and deploy K8s
https://github.com/abbos1711/golang-gitlab-ci-cd

ci ci-cd continuous-delivery continuous-deployment continuous-integration gitlab gitlab-cd gitlab-ci golang

Last synced: about 1 month ago
JSON representation

Golang project CI/CD in gitlab and deploy K8s

Awesome Lists containing this project

README

        

Variables in .ci-gitlab.yml:

$REGISTRY_USER: Represents the username for Docker registry authentication.

$REGISTRY_PASS: Represents the password for Docker registry authentication.

$IMAGE_NAME: Represents the name of the Docker image.

$IMAGE_TAG: Represents the tag of the Docker image.

$SSH_KEY: Represents the SSH key used for authentication.

$SERVER_IP: Represents the IP address of the remote server.

$SSH_USER: Represents the SSH username.

$CONTAINER_NAME: Represents the name of the Docker container.

$POSTGRES_HOST: Represents the host of the PostgreSQL database.

$POSTGRES_DATABASE: Represents the name of the PostgreSQL database.

$POSTGRES_USER: Represents the username for PostgreSQL authentication.

$POSTGRES_PASSWORD: Represents the password for PostgreSQL authentication.

K8S:

kubectl apply -f Deployment.yaml

kubectl apply -f Service.yaml