Skip to content

Build and deploy containerized applications into Docker Swarm using GitLab CI

License

Notifications You must be signed in to change notification settings

bborysenko/swarm-deploy-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

swarm-deploy-helper is a tool to help build and deploy containerized applications into Docker Swarm using GitLab CI.

Building Docker images

Example of .gitlab-ci.yml to build and release container image:

include:
  - remote: 'https://github.com/raw/bborysenko/swarm-deploy-helper/master/templates/docker.gitlab-ci.yml'

stages:
  - build
  - release

build:docker:
  extends: .docker:image:build

release:docker:
  extends: .docker:image:release

Google Container Registry

To be able to pull/push container images from/to Google Container Registry you have to create a service account and setup Gitlab CI environment variables.

  1. Go to IAM > Service Accounts and create one with Storage Admin role.
  2. Download a file contains the JSON private key for service account.
  3. In Gitlab create project or group level environment variables - GOOGLE_PROJECT - with name of Google Cloud project and GOOGLE_SERVICE_KEY with contents of service account private key which you downloaded previously.

Reference

About

Build and deploy containerized applications into Docker Swarm using GitLab CI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published